View the current directory: pwd
View the specific file size: ls -l
Return to the previous level: cd. .
Return to the root directory: cd /
Create a hidden file vim .test
Show hidden files: ls -a
Edit files:
1.vim File name
## 2. Press i to enter insert mode
3. After writing the file, press esc, then press the shift+: key, then enter wq, press Enter, and the file will be saved.
View the file content:
cat file name (if it is a txt file, write the suffix
more File name (there is a lot of file content, you can check it slowly)
Create directory:
mkdir directory Name
mkdir -p CN/jiangsu/nanjing/gulou Recursively create
move files: mv group_A group Move group_A to the group directory Next
displays the tree structure of the directory: tree CN
The above is the detailed content of Linux summarizes some common commands. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn