1. Use the Find command to find a file that occupies a larger space
Find/-type f-size +5g-finds files larger than 5G and can be used with work permissions
Find. -type f-size +10000k--linux to find files larger than 10M
Find-type f-size +500k-and-size-1000k--Find files between 500KB and 1000KB in size:
2. Using the du command
Du-h--max-depth=1/home/----max-depth=1 View the hierarchy of subdirectories, currently 1 levels
Du-h/home/| sort-n-to sort files by size
Du-s-H/*-Take a look at the usage below the directory
Du-h--max-depth=1/home/work/|grep g|sort-n-- use without work permission, find out the directory that occupies the largest amount of disk space go to the step-finding
Du-hs/home--View/home occupancy space
What is the difference between Linux output redirection > and >>?
> is directed output to a file, if the file does not exist, create a file, if the file exists, it is emptied; generally, when we back up the cleanup log file, it is this method: first back up the log, and then use ' > ', the log file is emptied (the file size becomes 0 bytes);
>> This is to append the output to the destination file. If the file does not exist, the file is created, and if the file exists, the new content is appended to the end of the file, and the original content in the file is not affected.
Linux system disk Full processing method