Linux files are very difficult to clean up. There are many files of large and small size. It is the quickest way to use batch cleaning. However, if there are too many files, you can clean large files first. I will introduce you to the Linux use of commands to clean up large files, freeing up system space.
Find large files
find /dir -size + 100M -exec ls -lh {};
If you want to clear the text files and the like, can be Use
echo “” 》 /www/xxx.log
If you want to delete files larger than 50M directly, use the command
find /var/mail/-size +50M -exec rm {} ;
If you want to sort folders and files, you can use
du -s * |
Sort -nr |
Head
Linux uses commands to clean large files. This is the case. The size range of large files can be set by users. This article takes the cleaning of files larger than 50M as an example.
In the Linux system, you can freely send mail through the command line. You can use
Recently, users have reported that the Ubuntu system installed in the virtual machine found that the
Recently, many Linux users have experienced problems when using OpenSSH. The soluti
Ubuntu installed graphics driver is sometimes not so smooth, will prompt an error and cause Nvidia d
Linux system management disk and file method
How to solve the problem of Linux system Swap exhaustion
How does Ubuntu automatically switch between the mouse and the shared clipboard under VirtualBox?
How to adjust the resolution and screen refresh rate of Ubuntu system?
How to expand Xen virtual hard disk space by Linux
How to use NTP server under Linux system?
Linux system Rhythmbox player how to solve Chinese garbled?
Linux svn error Cant convert string from how to do?
Linux tips for using FDisk tools
CentOS 6.6 system installation steps
Linux system how to switch the foreground process and background process
Is it dangerous to buy a second-hand Apple computer?
Win10 TH2 update intimate improvement: right click menu to add Defender scan
Basic knowledge of cgroups in Linux
Windows or Linux? Who is good for the server system
Win10 IoT Core IoT Core 1st Anniversary Update ISO Image Download Address
Win7 software compatibility problem solution
Win10 annual update comes: Win7/8.1 can be thrown!
Win10 system prompts Microsoft DirectX diagnostic tool has stopped working and the solution