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 Overview 1. Dependency Injectio...
This article shares the 6 most effective methods,...
Table of contents 1. Calculated properties 1.1 Ba...
Background Many website designs generally consist...
Gtid + Mha + Binlog server configuration: 1: Test...
User table, ID number must be unique, mobile phon...
Why learn vim Linux has a large number of configu...
Table of contents 1. Introduction 1.1 Principle 1...
Table of contents Overview Why choose a framework...
When using the MySQL database, if you have not lo...
1 Get the installation resource package mysql-8.0...
For example, if your current path is /var/log and...
Record some of the places where you spent time on...
When an employer asks you whether an index will b...
1. Differences in network configuration between C...