[NTLUG:Discuss] quiest way to find out largest file in the disk (use command line) ?
terry
kj5zr at yahoo.com
Thu Mar 4 08:36:04 CST 2004
Jack Snodgrass wrote:
> On Mon, 2004-03-01 at 07:58, m m wrote:
>
>
>>suddently, my disk went to 97% usage. (only 3% free space)
>>
>>Is there any way to list top 10 lagest files in the same disk?
>>
>>if not, how about in the same directory (includes sub-directories), say /usr
>>or /var ?
>>
>>use console/command line only [no X-windows available :( ]
>
>
>
> I generally start at / and work my way down from there.
> cd to / and do
> du -s -k -d * | sort -n
-d is not an option on my system but
ls -lS |grep ^d
works and then
du -s -k * | sort -n
works fine to display filesizes and shows largest last
--
Registered Linux User 188099
http://counter.li.org/
More information about the Discuss
mailing list