1.

What are Linux directory commands?

Answer»

There are basically five Linux directory commands that are used to WORK with FILES and directories as given below: 

  • PWD: It stands for “print working directory”. This COMMAND is generally used to DISPLAY the path of the present or current working directory. 
    Syntax: $ pwd 
  • cd: It stands for “change directory”. This command is generally used to change the present working directory to the directory that we want to work on. 
    Syntax: $ cd <path to new directory> 
  • Is: It stands for “list”. This command is generally used to show the full list of content of files and directories in the present working directory. 
    Syntax: $ ls 
  • mkdir: It stands for “make directory”. This command generally allows users to create directories in Linux.  
    Syntax: $ mkdir <name (and path if required) of new directory> 
  • rmdir: It stands for “remove directory”. This command is used to remove/delete each directory that is specified on the command line. 
    Syntax: $ rmdir <name (and path if required) of directory> 


Discussion

No Comment Found