You can do something like that
Code:du -shc * | sort -n
no, its not sorting well, i want that GB should come first then MB & then KB
below is the output for du -shc * | sort -n
1.2M razor-agents-2.84
2.0M rep.txt
2.8M installalation_joomla
4.0K cpmove
4.0K csfbackup.sh
4.0K dead.letter
4.0K domainkeys_report.2011-01-08.log
4.0K list.txt
4.0K maildirsize.bkp
4.0K public_ftp
4.0K suphp.sh
8.0K anaconda-ks.cfg
8.0K install.log.syslog
8.0K public_html
8.0M installd
8.2M pecl_http-1.6.1
12K cpanel3-skel
12K securenobody.rpm
12K updatekernel-dn.sh
15M tmp
16K package.xml
20K install.log
24K package2.xml
28K script
32K thank-you?ext=tgz
40M total
176K pecl_http-1.6.1.tgz
340K resultnew
384K razor-agents-2.84.tar
452K IP_aapnuamd
584K wget-1.10.2-3.2.1.i386.rpm
860K csfconffiles
Hey !
You can simply execute du -sch * | grep G. This will display the dir's or files in Gb's.
I've moved these posts to a new thread with an applicable title that describes the issue. Please avoid posting to older threads unless the discussion pertains to the actual thread content. Opening a new thread will be more beneficial to ask a question in most all instances.
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Forums Technical Analyst, cPanel Tech Support
Submit a ticket | Check an existing ticket
not finding yet, i want to sort directories/ files usage wise
e.g 12 GB should come on top, then MB & KB
Last edited by crazyaboutlinux; 04-20-2011 at 02:15 AM.