Sunday, September 23, 2012

Basic Terminal Navigation Commands

"cd"  command 

             used to change the current directory
         
       cd directoryName   or  cd fullpath/directoryName

 ex:
   [ravindu@localhost ~]$ cd Desktop
   [ravindu@localhost Desktop]$

   [ravindu@localhost Desktop]$ cd /home/ravindu/Documents
   [ravindu@localhost Documents]$

   to go back to the previous directory use cd ..

  ex:
     [ravindu@localhost Documents]$ cd ..
     [ravindu@localhost ~]$

 

"ls" command

   used to list files and directories of the current directory
   ex:


ls -a
   displays all the files in the current directory including hidden files
   ex:



ls -l
   displays long list of files in the current directory with  details

   ex:



to view all other available command line arguments for ls command type
ls --help


"pwd" command
       prints the current directory

 ex:
     [ravindu@localhost Documents]$ pwd
     /home/ravindu/Documents




3 comments:

  1. Cheers!!!
    Keep this updating and keep in touch...

    Please remove the word verification.
    It costs time.

    ReplyDelete
  2. go on buddy! we need to more advance lessons if you can!

    ReplyDelete