"cd" command
used to change the current directorycd 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 directoryex:
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
Cheers!!!
ReplyDeleteKeep this updating and keep in touch...
Please remove the word verification.
It costs time.
go on buddy! we need to more advance lessons if you can!
ReplyDelete:)
ReplyDelete