- pwd :- pwd stands for “Print working Directory”. This command allows you to know the current directory in which you are located.
- cd :- .Change directory
This command allows you to change the directories.
cd /home :- (root directory) Change the current working directory to /home.
cd .. :- Change to parent directory of current directory.
cd ~ :- This allows to move to the user’s home directory as : /home/user - Create and Delete directories
mkdir dname :- This command will create a new directory named as dname.
rmdir dname :- This command will delete the dname directory (Empty directory)
rm -r d :- It allows to remove directories and their contents recursively. - ls – List information about the files (by default current directory )
ls -l :- list all file/directory information in current directory(long version)
ls -a :- list hidden files ( It will not ignore entries starting with . )
ls -R :- (List Sub-directories) list current directory and all other directories within current directory.
ls -r :- list in reverse alphabetically order.