How To Find Latest Files In Linux? This function finds all files in the directory by following /dir/path -type f. Shell pipes (such as the one on Pipelines section about man overboard) are available. The sort -n syntax defines a numerical sorting solution rather than a lexicographic definition.How to find large size files in Unix?
head command : Output the first part of files i.e. to display first 10 largest file. find command : It Searches file on Linux machine. Use the following command to find the largest Top 10 files and directories on a Linux system –. $ sudo du -a /var | sort -n -r | head -n 10. The sample output should be like this –.