12 January 2012

Demystify the Linux Prompt

Leave a Comment

All About Linux Prompt

                                 Once you log in your account you will see something like this in your terminal


It contain lot of information

1. sandeep :- This is your login name.
2. sandeep-desktop :- This is the name of the machine you are logged in.
3. :~ : This is your current directory(~ is for HOME directory)
4. $ :  This means you were logged in as normal user , if it is # then you are root user.

sandeep@sandeep-desktop:~$ pwd

sandeep@sandeep-desktop:~$ cd /etc
sandeep@sandeep-desktop:/etc$ pwd


* current directory part changes when you moved to another directory.

If You Liked This Post Please Take a Time To Share This Post

You May Also Like...


Post a Comment