[NTLUG:Discuss] command help
Rusty Haddock
rusty at fe2o3.lonestar.org
Fri Aug 18 16:09:13 CDT 2006
m m wrote:
>All:
>
>Thanks for the input. I still have the question.
>
>Those suggestions are good but can not find (list) the files as expected if
>the current directory contain no files. Also you will get error if you use
>this
>ls -l | sort -n +4
>the error message is:
>sort: open failed: +4: No such file or directory
>(try the command in a directory which contains only directories and has no
>any files)
>
>I guess I like the know the command the can find the biggest files in the
>entire box not just the in the current directory.
>
>I have tried
>
>cd to /
>ls -lSR | head -6
>
>or
>
>ls -lR / | head -6
>
>All I get is the folder list. (but I was looking for the biggest first 6
>files)
You said you wanted to find the largest files in a directory. What is
the -R option doing there? That recurses down into the subdirectories
and then starts sorting on the files in each directory it finds.
-Rusty-
--
_____ Rusty Haddock = KD4WLZ = rusty at fe2o3.lonestar.org
|\/ o \ o **Out yonder in the Van Alstyne (TX) Metropolitan Area**
| ( -< O o Microsoft is to software what
|/\__V__/ McDonalds is to gourmet cooking
More information about the Discuss
mailing list