[NTLUG:Discuss] command help

brian@pongonova.net brian at pongonova.net
Thu Aug 17 13:12:46 CDT 2006


On Thu, Aug 17, 2006 at 05:37:02PM +0000, m m wrote:
> what is the command to list (and ordered) first 20 biggest size file in any 
> directory?

There isn't a single command.  But you can construct a pipe to do the
job.

Right from the man page for ls:

ls -l | sort -n +4

To reverse the sort:

ls -l | sort -nr +4

> what is the command to list (and ordered) files which have been access 
> wthin one month?

Let the man page for find be your friend :)   Something like this
should work:

find ./ -atime -30 -print

Ordered by what criteria?  Time accessed?  Size?  Alphanum?

  --Brian



More information about the Discuss mailing list