LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 06-12-2008, 09:36 AM   #1
linuxshadow
LQ Newbie
 
Registered: Jun 2008
Posts: 18

Rep: Reputation: 0
Which File consuming maximum Size???


Can anyone help me with script which will depict which files are consuming maximum size in my linux box??
 
Old 06-13-2008, 02:24 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,462

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Do some searching - this comes up all the time. Usual answer is some combination out of ls, du, find and awk
Try this thread for some ideas.
 
Old 06-13-2008, 02:24 AM   #3
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
You can use the find command to locate files greater than a certain size.

find ~/ /var /tmp -type f -size +50M -printf "%b %p\n"

This command will locate all files more than 50 MB in your home directory,/var and /tmp. You could pipe the output through "sort -nr".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum file size Hiran Joseph Programming 7 11-24-2006 07:54 AM
maximum linux file size? alec77 Linux - Newbie 8 12-03-2004 09:31 AM
avisync maximum file size david.skinner Linux - Software 0 11-26-2004 05:19 PM
Maximum file size with AIX & JFS ? stephnane AIX 4 07-07-2004 02:23 PM
Maximum Size of File in Red Hat Linux 2.1 imsajjadali Red Hat 0 07-02-2004 09:05 AM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration