how to find largest file?
Answer Posted / phani
Eg:- we need to find /tmp filesystme large files , this
command will give all large files::
find /tmp -size +200 -exec -ls -s {} \; |sort -nr |more
=============
(root): ls -lstr|head -1
total 112
==============
: ls -l | sort +4 -nr | head -1
dr-xr-xr-x 11 root bin 8192 Oct 4 2007
SUNWexplo
===========
: ls -ls|sort -nr|head -1
16 drwxr-xr-x 25 appw app 8192 Aug 4 14:45 appw2
==============
: du -a /var | sort -n -r | head -n 10
6054872 /var
2150598 /var/sadm
2108022 /var/sadm/pkg
2077238 /var/crash
2077220 /var/crash/cmfciohqapp01
2072560 /var/crash/cmfciohqapp01/vmcore.0
1182398 /var/tmp
282530 /var/sadm/pkg/VRTSvxvm
282454 /var/sadm/pkg/VRTSvxvm/save
276332 /var/tmp/J2SE_Solaris_10_Recommended
===================
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the commands in UNIX to list the files in a Directory?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
What is the use of find command in unix?
What is the first character of the output in ls l command?
What do chgrp command do?
Which command is used to create a directory?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What are some command words?
Does cp command overwrite files?
Give the command for finding the current date.
What is nr in awk command?
How many unix commands are there?
What command is used to check the current users?
What is a bash command?
How do I clear my terminal history?