banner
破影岚歌

破影岚歌的博客

bilibili
twitter
github

3. CentOS 7 File Directory Operations

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#

  1. Create directories consecutively: For example, create directories a, b, c under the root directory mkdir a b c
  2. Create directories consecutively: For example, create /a/b/c directories under the root directory (cascading) mkdir a/b/c
  3. View hidden files: ls -a
  4. View detailed file information: ls -l
  5. Go back to the previous directory: cd .. (..: represents the parent directory; .: represents the current directory)
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.