CentOS Linux Server Guide

Centos Linux Command Line Operation

Command Prompt

 

Command Prompt is the text mode operation interface of using Linux System. This is the most simple, yet powerful and stable interface for your daily operation.

 

Command Prompt will be displayed after user logged in successfully from login prompt. A command appears means that the system is ready to waiting for our command input.

 

The syntax of Linux command prompt are as below

 

[username@hostname  user-current-directory] # or $

 
username the user name or user id you use to login to the system
hostname hostname is your server name
user-current-directory the directory that the system direct to you after you login. If you are Jane the Jane's home directory will be directed to you automatically after you login.

 pwd
 

/home/jane

Note:  ~ is means your home directory

 pwd


/usr/bin
 

Note: we are in currently in bin directory, which is subdirectory of /usr
 

# this is the symbol that tells you that you login as root user (admin)

[root@srv1 ~]#
 

$ this is the symbol that tells you that you login as normal user

[jane@srv1 ~]$
 

 

Back to Command Line Operation



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy