[NTLUG:Discuss] command help
Rusty Haddock
rusty at fe2o3.lonestar.org
Thu Aug 17 13:40:10 CDT 2006
m m wrote:
>All:
>
>what is the command to list (and ordered) first 20 biggest size file in any
>directory?
>what is the command to list (and ordered) files which have been access
>wthin one month?
>
>ls command don't do this. :(
Actually, it will.
ls -laS
If you want smallest to largest, the add 'r' to the options.
If you want just the 'N' largest or smallest, suitable application
of 'head -N' or 'tail -N' is needed.
Same thing for access time. The -u option is your friend here.
ls -latu
Again, the -r option will reverse the sorting and 'head' or 'tail'
will give you the top N or bottom N.
It's all in TFM (The Fine Manual) page. :-)
-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