How Linux lists directories larger than the specified size

  
                

On Linux systems, it is often necessary to clean up some of the larger files to expand the available space on the disk. But before you clean up these files, you should find them first, or list all the large files Linux directories. This article takes the awk command as an example to introduce how Linux lists directories larger than the specified size.

business background

/home /pms directory is the working directory, the directory now take up hard disk space is too large, it needs to be cleaned, and now needs to enumerate all the child files larger than 200MB in that directory Directory, and the footprint of this subdirectory directory

Script implementation

du -h --max-depth=10 /home/pms/*

Copyright © Windows knowledge All Rights Reserved