This article describes the Linux file management commands with examples. Share with you for your reference, the details are as follows: 1. File permissions
Files are divided into three types of permissions:
2. View the files in the directory ls [options] [path or filename] First column: file permissions 3. Directory Management mkdir directory name creates a directory rmdir directory name delete directory (only empty directories can be deleted) 4. File creation and deletion touch file name to create a file 5. Copy and move files cp [options] source file path target file path copy file > cp -R /home/user1/123 /home/. (. means use the original file name)
> mv /home/user1/123 /home/.
6. File Statistics wc [options] file list statistics file content >wc -c 1.txt >wc -w 1.txt 7. Search for matching rows grep [options] string source file > grep -ni hello 1.txt I hope this article will help you maintain your Linux system. You may also be interested in:
|
<<: Discussion on more reasonable creation rules for MySQL string indexes
>>: The process of using vxe-table to make editable tables in vue
Table of contents 1. Technology Selection 2. Tech...
Preface I looked at the previously published arti...
This article uses the crontab command in the Linu...
Reference: Docker official redis documentation 1....
MySQL (5.6 and below) parses json #json parsing f...
This is an important (and wonderful) topic for Li...
Table of contents background Achieve a similar ef...
Preface I have read many similar articles before,...
1. In addition to the default port 8080, we try t...
Related articles: Beginners learn some HTML tags ...
For the beginner's first installation of MySQ...
Method 1: Adding values Let's go to MDN to se...
This article shares with you a detailed tutorial ...
Table of contents mapState mapGetters mapMutation...
Table of contents 1 The common rules for creating...