Directory commands in Linux

Below is the list of directory commands in Linux.

  1. mkdir – create a new directory
  2. pwd – print present working directory
  3. cd – change directory
  4. cp – copy one directory from source to destination
  5. mv – move directory from source to destination
  6. rm – delete directory
  7. ls – view directory and files
  8. chmod – modify the file or directory permissions
  9. chown – change the user and group ownership of the file

As you have noticed, most of these commands also apply to files. In fact, linux does not differentiate between files and directories.

You may also like...