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 Preface HTTP HTTP Server File S...
At the beginning of the new year, I would like to...
Table of contents Background 1. What is dns-prefe...
Application example website http://www.uhuigou.net...
Front-end project packaging Find .env.production ...
introduction The previous article introduced the ...
During the development and debugging process, it ...
<br />Scientifically Design Your Website: 23...
After being tortured by the front-end cross-domai...
<br />When you click the link, the web page ...
Table of contents Make scrolling smoother BetterS...
1. First look at the request configuration file, ...
Table of contents Introduction: Installation of e...
This article shares the specific code of vue+vide...
ins and del were introduced in HTML 4.0 to help au...