top biggest files


 
Thread Tools Search this Thread
Operating Systems Solaris top biggest files
# 1  
Old 01-24-2007
top biggest files

hi all,

is there any way how i can output the top 10-30 biggest files for all filesystem?

using du -sh * is quite tedious since i have to move from 1 directory at a time.

thanks
# 2  
Old 01-24-2007
It would be slow and not very efficient, but this would work.

Code:
find / -type f -ls | awk '{print $7,$11}' | sort -n | tail -10

# 3  
Old 01-25-2007
Quote:
Originally Posted by reborg
It would be slow and not very efficient, but this would work.

Code:
find / -type f -ls | awk '{print $7,$11}' | sort -n | tail -10

thanks so much for the reply reborg,

this is actually my first ever venture in solaris unix and I just recently install this on my old athlon xp 1400. :0)

so far everything is going alright, I have backup and put all my mp3's on this box and its really doing great detecting my network, sound and video.

By the way, I hope you can help me further on this.

Since I got a backup of my files in /export/home, I've made a mistake of putting too much disk space on this filesystem.

I read about the format command and everytime I use format->partition->press the partition #->modify ... and reduce it from there, but when I get out to the prompt its still in 8gb which I reduced it to 1gb.

did i missed something?

Thanks again.
# 4  
Old 01-25-2007
Yes, you did.

You need to label the disk after making changes.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grep 5 biggest column

please help, file1.txt id,week,ict,outgoing_call,blackberry_problem,gprs_problem,sms_problem,flash_problem,sinyal_lemah,blankspot,incoming_call,mms_problem,kualitas_suara,drop_call,data_probl em,cross_connect,connect_no_voice,vas_problem ,1,sumbagsel,96,127,52,70,28,29,21,18,18,8,5,3,0,0,3... (1 Reply)
Discussion started by: radius
1 Replies

2. Shell Programming and Scripting

help to get the biggest partition with awk

# fdisk -l /dev/sda Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk... (9 Replies)
Discussion started by: yanglei_fage
9 Replies

3. UNIX for Dummies Questions & Answers

List biggest files (Not Directories)

Hello, can you please help me writing a command that would output the biggest files on my system from biggest to smallest? I want this to print only the files, not the directories. I have tried du -a ~ | sort -nr | head -10 However, this also prints out all the directories - which I do... (8 Replies)
Discussion started by: tonydaniels1980
8 Replies

4. HP-UX

Biggest files on FS /

Hi! I'm using Unix HP I'm looking for a command which find the 20 (less or more) biggest files on / but which exclude every other files system Thanks;) (7 Replies)
Discussion started by: Castelior
7 Replies

5. Shell Programming and Scripting

Top 5 biggest file

Hi , I need to get a list of name and size , of the the top 5 biggest file under the current directory , in decending order Thank You (4 Replies)
Discussion started by: yoavbe
4 Replies

6. UNIX for Dummies Questions & Answers

sort biggest most recent files

if i am in /tmp file, and i have a few DIRs under /tmp. i want to find the biggest and most recent files (from 7 days ago) in /tmp and subfolders. (3 Replies)
Discussion started by: tjmannonline
3 Replies

7. Shell Programming and Scripting

Script to check top 5 biggest disk space users

Hi all, I am needing a bash shell script to generate a list of the top 5 users using the most disk space. I am thinking that the du command would be used somehow but I am at a loss. Can anyone help? Thanks! (3 Replies)
Discussion started by: sytemx
3 Replies

8. UNIX for Dummies Questions & Answers

How to list top 10 files

Hello everybody; I am new to unix. Thanks for creating such a informative forum, I wanted to know that how can i list top 10 files in my current dir. which were accesed recently by using ls command. Thank You. (4 Replies)
Discussion started by: satish_1983
4 Replies

9. Shell Programming and Scripting

finding biggest number

I think my script is working but i am trying to understand while I am tracing to see if it's realli working.. can somebody please comment.. also. is there different way to write this in shell? sh -x findbiggestnum 1 2 3 + big=0 + big=1 + big=2 + big=3 + echo 3 3 big=0 ... (3 Replies)
Discussion started by: hankooknara
3 Replies

10. UNIX for Dummies Questions & Answers

The biggest newb ever...

Hi, all you unix people. I am a pretty advanced windows user, but I am curious about unix. Is there any reason I should attempt to acquire some form of unix for my home computer system? What sort of things is unix useful for? Unix is open source, right? Assuming that to be the case, I infer that... (3 Replies)
Discussion started by: BoneMalone
3 Replies
Login or Register to Ask a Question