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 empty directories), rm -rf delete non-empty directories
Browse directory ls


Extended Commands for Directory Operations#

  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 directories /a/b/c 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 parent 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.