Please refer the following command to get  files by size, biggest last  under Linux or Unix System

# ls -lSr

Example..

[root@pwas2 ~]# ls -lSr
total 196212
-rw-r–r– 1 root root 0 Feb 5 2010 test1.txt
-rw-r–r– 1 root root 1124 Jul 8 2008 gish
-rw-r–r– 1 root root 1574 Jan 24 2008 anaconda-ks.cfg
-rw-r–r– 1 root root 1853 Jul 7 2008 index.html
-rwxr-xr-x 1 root root 4078 Aug 1 2008 check_mem
drwxr-xr-x 2 root root 4096 Sep 25 2006 nagios
drwxr-xr-x 2 root root 4096 Mar 4 2008 Desktop
drwxr-xr-x 21 root root 4096 Jun 30 2008 data
drwxr-xr-x 3 root root 4096 Jun 30 2008 backup300608
drwxr-xr-x 33 root root 4096 Aug 12 2008 backup180808
drwxr-xr-x 3 root root 4096 Jul 12 2008 backup120708
-rwxr-xr-x 1 root root 4116 Aug 1 2008 check_process
-rwxr-xr-x 1 root root 4377 Jul 10 2008 check_mem.pl
-rw-r–r– 1 root root 4734 Jan 24 2008 install.log.syslog
drwxr-xr-x 2 root root 12288 Jan 25 2008 linux
-rw-r–r– 1 root root 25301 Aug 19 2009 apachelive
-rw-r–r– 1 root root 35471 Jul 7 2008 httpd.conf
-rw-r–r– 1 root root 45120 Jul 7 2008 php.ini
-rw-r–r– 1 root root 48916 Jan 12 2010 hist1.txt
-rw-r–r– 1 root root 54105 Jan 24 2008 install.log
-rw-r–r– 1 root root 79450 Mar 19 2009 netstat22
-rwxr-xr-x 1 root root 337634 Jan 25 2008 altiris-adlagent-2.6-38.i386.bin
-rw-r–r– 1 root root 504972 Sep 4 2009 verification2
-rw-r–r– 1 root root 665600 Jul 20 2007 centos4_i386.tar
-rw-r–r– 1 root root 1579266 Mar 10 2009 netstat
-rw-r–r– 1 root root 197202097 Jul 8 2008 access_log

Post By Editor (2,827 Posts)

Website: →

Connect