Linux summarizes some common commands

大家讲道理
Release: 2017-07-15 11:41:05
Original
1680 people have browsed it
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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!