Directory CommandDescription
pwdThe pwd command stands for (print working directory). It displays the current working location or directory of the user. It displays the whole working path starting with /. It is a built-in command.
lsThe ls command is used to show the list of a folder. It will list out all the files in the directed folder.
cdThe cd command stands for (change directory). It is used to change to the directory you want to work from the present directory.
mkdirWith mkdir command you can create your own directory.
rmdirThe rmdir command is used to remove a directory from your system.

Examples-

  1. pwd
  1. ls

          ls -a   list all files including hidden file starting with ‘.’

        ls -lrt    -l list with long format – show permissions

                      -r list in reverse order

                       -t sort by time & date

cd ~    Change to home directory

        cd /    Change to root directory

      cd ..  Change to parent directory

 cd folder   Change to subdirectory var

mkdir – Stands for ‘make directory’. With the help of mkdir command, you can create a new directory wherever you want in your system.

rmdir remove files

Leave a Reply

Your email address will not be published. Required fields are marked *

WhatsApp
Inquiry Now