October 28, 2011

How to order files size output from du command

Posted in Solaris at 10:06 am by alessiodini

Today i’m doing some analysis on a system and i need to see which are the most bigger files in a directory.
I need to see ad ordered list of them. For this purpose i maked this useful command.

Following the output:

68G backup_rman
65G imsbackup-26.backup
64G imsbackup-25.backup
11G backup_VAR
1.6G SunOS_sparc
931M Identity_Synchronization_for_Windows
831M Comms-solaris_sparc.zip
98M 110919.tar.gz
1.7M apab.ldif
1.0M serverdb.ldif
757K Legal_Folder
208K pkg
53K backup.log
26K README
8K lost+found
4K COPYRIGHT.txt
3K README.txt

y0! 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: