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.
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.
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
tarun boyella
No comments:
Post a Comment