The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
free some space in file system fu4d UNIX for Dummies Questions & Answers 6 04-11-2008 04:27 AM
file system space arg !!! and confused Westy564 AIX 2 02-20-2008 10:54 AM
Lost space on file system aribault SUN Solaris 2 03-06-2006 04:43 AM
Root File system Space cgege HP-UX 2 04-13-2005 04:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-04-2008
lokeshpashine lokeshpashine is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 4
How to find a file whick is consuming larger disk space in file system

Hello,

Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it

please help me out
any help would be appreciated
  #2 (permalink)  
Old 01-04-2008
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Have fun with "du -k path..."
  #3 (permalink)  
Old 01-04-2008
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
Is it a running process that is consuming more space ?

In such case identify the file; use lsof and kill the process which is dumping information into the file.
  #4 (permalink)  
Old 01-04-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
finding 10 largest in current directory

> du -k * | sort -n | tail -10

That would tell you the ten largest files in the directory you are in.
Are you trying to find the largest files across the entire system?
  #5 (permalink)  
Old 04-03-2009
madanmb madanmb is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 3
u can use

find /dirname -size +100000 -print
  #6 (permalink)  
Old 04-04-2009
amitranjansahu's Avatar
amitranjansahu amitranjansahu is offline
Registered User
  
 

Join Date: Jan 2009
Location: Gurgaon,INDIA
Posts: 239
du -sk * | sort -nr | head -5
  #7 (permalink)  
Old 04-04-2009
dennis.jacob dennis.jacob is offline Forum Advisor  
dj -------
  
 

Join Date: Feb 2007
Location: Singapore/Bangalore/Cochin
Posts: 555
If u consider not only files in the current directory , but also the files under its sub directories, try the below one:

Code:
du -ka | sort -nrk1 | tail -10
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0