CentOS 7 File Directory Operations#
pwd Display current path
cd Change directory
About Linux Directory Operations#
Create directory mkdir
Delete directory rmdir (only for deleting empty directories), rm -rf delete non-empty directories
Browse directory ls
About Directory Operations Extended Commands#
- Create directories consecutively: For example, create directories a, b, c under the root directory
mkdir a b c - Create directories consecutively: For example, create /a/b/c directories under the root directory (cascading)
mkdir a/b/c - View hidden files:
ls -a - View detailed file information:
ls -l - Go back to the previous directory:
cd ..(..: represents the parent directory;.: represents the current directory)