This article describes the Linux file management commands with examples. Share with you for your reference, the details are as follows: 1. Display file contents
2. Change file permissions
>chmod 666 1.txt > chown user1 1.txt >chgrp user1 1.txt 3. Link files 1) Protect the source program 2) Easy access
-d hard link Hard-linked files look the same as normal files. Changing one file will affect the other file. When the source file is deleted, the hard-linked file will not be affected. 4. Find files find [directory list] [matching parameters] [matching criteria] > find /home/user1 -name 1.txt 5. Other related commands df View hard disk space > df -lh > df -lH du View file size du -s 123 Statistics folder size mount command mount /dev/cdrom /mnt/cdrom umount uninstall command umount /mnt/cdrom eject Eject the CD-ROM drive I hope this article will be helpful for everyone's Linux system maintenance. You may also be interested in:
|
<<: MySQL scheduled task implementation and usage examples
>>: JavaScript to implement the function of changing avatar
Preface add_header is a directive defined in the ...
The first step is to add the corresponding databa...
Table of contents Configuration nfs server (nfs.s...
Table of contents 1. Install Docker 2. Install Gi...
If you directly set the width attribute to the sty...
This article shares the specific code for the WeC...
Create a container [root@server1 ~]# docker run -...
BFC BFC: Block Formatting Context BFC layout rule...
background We often use Chrome Dev Tools for deve...
In fact, this is also a clickbait title, and it c...
This article uses examples to explain the concept...
Effect: When the slideshow moves in one direction...
This is a large drop-down menu implemented purely...
There is a difference between src and href, and t...
There are many form elements. Here is a brief sum...