Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
ls command
Name: woojin yu Date: March 24, 2001 at 09:04:29 Pacific
Comment:
how do you list files in decreasing order of file size? there has to be an option in ls, right?
Name: DMR Date: March 25, 2001 at 02:21:46 Pacific
Reply:
Try "ls -S"; that should list files starting with the largest first.
0
Response Number 2
Name: WolfieK Date: March 26, 2001 at 06:20:08 Pacific
Reply:
hi woojin yu,
"ls -S" is not supported on all unix platforms. use "ls -al | sort -a -k5" instead, where "k5" is the fifth column of "ls -al", the column which contaiŽns the filesize (on most derivatives)
greet$ Wolfie
0
Response Number 3
Name: WolfieK Date: March 27, 2001 at 04:51:55 Pacific
Summary: Hi, I am using "ls -rtC1 *.xml" command to obtain a listing of xml files in a unix directory. But if there are no xml files in that directory it returns "*.xml: No such file or directory". I don't wan...
Summary: I don't think the ls command has the ability to not traverse file system mount points that lie on the path being recursively listed. One solution is that the awk code could be hardcoded to bypass thes...