Common commands for maintaining Linux servers 1. view hard disk usage df & amp; ndash; h, for example: 2. force delete the static file rm & amp; ndash; rffileName *. for example, if the file name does not have the same name, you can view similar files, such as rm & amp; ndash; rffileName3. delete the text to be updated in real time... common commands for Linux server maintenance
1. View hard disk usage
Df-h, for example:
2. force delete static files
Rm-rf fileName *, for example:
If you do not have the same file name, you can view similar files, such:
Rm-rf fileName
3. to delete objects updated in real time, you cannot use rm to delete objects directly. the following command is required:
Echo ""> fileName, for example:
4. view the folder size
Du-sh, such
5. view the file size in the folder
Du-sh *, for example:
6. check the memory, process, and load. this is safer.
Top, such:
7. File page turning skills. when a file is large, you need to view it on pages.
More fineName, for example:
When a command outputs a lot, you can also use more. after the command, "| more", such:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service