Apr 14, 2003 #1 jie Technical User Apr 8, 2003 71 US I would like to ask if there is a command to find the largest file in a directory? Thanks in advance
Apr 15, 2003 1 #2 Boria Programmer Oct 16, 2002 156 RU Hi Jie, try command ls -o|awk '{print $4, $8}'|sort -n -r|head -1 regards Boris Upvote 0 Downvote
Apr 15, 2003 #3 DSMARWAY Technical User Jun 25, 2002 640 GB hi, you can use the find command and -size option to list files which are greater than the -size flag e.g. find directory -type f -size +3000 -ls -size is in 512 byte blocks HTH Upvote 0 Downvote
hi, you can use the find command and -size option to list files which are greater than the -size flag e.g. find directory -type f -size +3000 -ls -size is in 512 byte blocks HTH
Apr 15, 2003 Thread starter #4 jie Technical User Apr 8, 2003 71 US thanks guys .... for your response Upvote 0 Downvote