Sponsored Content
Full Discussion: Ls -al / du
Top Forums Shell Programming and Scripting Ls -al / du Post 302927894 by reid on Sunday 7th of December 2014 01:18:09 AM
Old 12-07-2014
Another option. I don't know if this works with AIX, but

Code:
du -sh $(find /opt -type f -size +10M) | sort -nr

produces these results (files larger than 10MB):
Code:
 59M	/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar
 26M	/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
 11M	/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/PortIndex

 
mkepmlist(1)						      Easy Software Products						      mkepmlist(1)

NAME
mkepmlist - make an epm list file from a directory. SYNOPSIS
mkepmlist [ -g group ] [ -u user ] [ --prefix directory ] directory [ ... directory ] DESCRIPTION
mkepmlist recursively generates file list entries for files, links, and directories. The file list is send to the standard output. The -g option overrides the group ownership of the files in the specified directories with the specified group name. The -u option overrides the user ownership of the files in the specified directories with the specified user name. The --prefix option adds the specified directory to the destination path. For example, if you installed files to "/opt/foo" and wanted to build a distribution that installed the files in "/usr/local", the following command would generate a file list that is installed in "/usr/local": mkepmlist --prefix=/usr/local /opt/foo >foo.list SEE ALSO
epm(1) - create software packages epminstall(1) - add a directory, file, or symlink to a list file epm.list(5) - epm list file format COPYRIGHT
Copyright 1999-2007 by Easy Software Products, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 3 April 2006 ESP Package Manager mkepmlist(1)
All times are GMT -4. The time now is 03:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy