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
1. Introduction table_cache is a very important M...
Shell Script #!/bin/sh # Current directory CURREN...
Table of contents Vue routing relative path jump ...
According to the coefficient of pi and the radius...
This article shares the specific code of Vue+echa...
Purpose Understand the role of nextTick and sever...
1. Introduction to nmon Nmon (Nigel's Monitor...
Today, when I was writing a small program, I used...
This article uses examples to illustrate the prin...
Redis is a distributed cache service. Caching is ...
Q1: What indexes does the database have? What are...
Find the problem Recently, when I connected to th...
Table of contents 1. Introduction to Slow Log 2. ...
Table of contents As a global variable Variable H...
Preface Crond is a scheduled execution tool under...