Download presentation
Presentation is loading. Please wait.
1
Getting started with CentOS Linux
Sergey Sukhonosov, Dr. Sergey Belov National Oceanographic Data Centre, Russia
2
Logging In Login: jboss Password: jboss Login: root Password: compaq
Switch user to root: su Switch back from root to jboss exit
3
Running processes Check if JBoss is running: ps –ef | grep java
4
Running processes View all running processes: top
5
Start/Stop JBoss AS Start JBoss AS:
/opt/dp/jboss GA/bin/jboss_init_redhat.sh start Stop JBoss AS: /opt/dp/jboss GA/bin/jboss_init_redhat.sh stop
6
Browsing local filesystem
Print the content of a file cat filename Change the local working directory cd directory List file names in a local directory ls or ll Print the local working directory pwd
7
File operations Copy a file or directory cp source destination
Create a directory in local file system mkdir directory Rename a file or directory mv source destination Remove a file rm file Remove a directory rm –r directory
8
Viewing files from the shell
Display the beginning of a file head filename Display first N lines of a file head –N filename (Ex.: head -20 filename) Display the end of a file tail filename (tail –N filename) The more command is a "pager" utility used to view text in the terminal window one page or screen at a time. The [Space] bar moves forward one page and [Q] quits.
9
Editing files with editor vi
Open file for editing: vi filename To start editing press INSERT key To stop editing press ESC key To exit vi and save changes :wq To exit vi without saving changes :q!
10
Shutdown virtual machine
To shutdown vm correctly type command logging as root user: shutdown –h now
11
Questions?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.