Main Menu

Search

LINUX: "find" Command To File Large Files Only in Local Root File Systems Excluding NFS Shares (How To Doc)

In Linux and UNIX Environments often times there may be need to clean up local filesystem space as it is full. In environment with NFS shares mounted it can get tricky to just identify the large files inside local file system. Below find command can be used to find the large files only in local file system.


find / -xdev -type f -size +500k -exec ls -lh {} \; | sort -n -r

Above command will search for all files inside only the local non NFS file systems which are over 50kb in size and then sort them by size and display.


Products to which Article Applies

All Linux and UNIX Environments.





tarun boyella

No comments:

Post a Comment