Sponsored Content
Full Discussion: Ls -al / du
Top Forums Shell Programming and Scripting Ls -al / du Post 302927720 by junior-helper on Friday 5th of December 2014 02:03:42 AM
Old 12-05-2014
Daniel,
is it the output of the find command? I ask this because the biggest file is ~10MB.

You mentioned UNIX 6.1, did you mean AIX 6.1? If so, then try:
Code:
find /opt -type f -size +100000000c -exec ls -l  {} \;

Quote:
Would it be possible to convert the size into MB and then sort them by descending order of the file size?
Yes, the above find command should print files greater than 100000000 bytes (~100MB). Then extend the find command like so
Code:
find /opt -type f -size +100000000c -exec ls -l  {} \; | sort -nrk5,5 | awk '{$5=$5/1024/1024}1'

Sample output (before sort & awk):
Code:
-rw-r-----   1 oracle   dba      104865792 Jan  1 00:00 ./example01.dbf
-rw-r-----   1 oracle   dba      513810432 Jan  1 00:00 ./system01.dbf
-rw-r-----   1 oracle   dba      272637952 Jan  1 00:00 ./sysaux01.dbf

Sample output (after sort & awk):
Code:
-rw-r----- 1 oracle dba 490.008 Jan  1 00:00 ./system01.dbf  # 490 MB
-rw-r----- 1 oracle dba 260.008 Jan  1 00:00 ./sysaux01.dbf  # 260 MB
-rw-r----- 1 oracle dba 100.008 Jan  1 00:00 ./example01.dbf # 100 MB

Hope this helps.
This User Gave Thanks to junior-helper For This Post:
 
ltsp-update-kernels(8)					      System Manager's Manual					    ltsp-update-kernels(8)

NAME
ltsp-update-kernels - Copy LTSP chroot kernels to TFTP directories. SYNOPSIS
ltsp-update-kernels [OPTION] [CHROOT...] DESCRIPTION
ltsp-update-kernels copies the boot/ directory from LTSP chroots to the TFTP directories in order to make them available to PXE clients. Copying kernels from inside NBD images is also supported. CHROOT can be a full path or a subdirectory of the /opt/ltsp base directory, and if it's unset, all available chroots are processed. OPTIONS
-b --base= The LTSP base directory. Defaults to "/opt/ltsp". -h --help The application help page. SEE ALSO
ltsp-build-client(8), ltsp-update-image(8), ltsp-update-sshkeys(8). AVAILABILITY
ltsp-update-kernels is part of ltsp package and the latest versions are available in source form from https://launchpad.net/ltsp. MAN PAGE AUTHOR
Copyright 2012 Alkis Georgopoulos <alkisg@gmail.com>, distributed under the terms of the GNU General Public License version 2 or any later version. 2012-05-29 ltsp-update-kernels(8)
All times are GMT -4. The time now is 02:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy