Directory commands in Linux
Below is the list of directory commands in Linux.
- mkdir – create a new directory
- pwd – print present working directory
- cd – change directory
- cp – copy one directory from source to destination
- mv – move directory from source to destination
- rm – delete directory
- ls – view directory and files
- chmod – modify the file or directory permissions
- 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.