Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find files/directories with big size

Status
Not open for further replies.

kaancho12

Technical User
Feb 22, 2005
191
hi,
is there a way to list all the files/directories that take up huge space in the whole drive???
i tried using "ls -l |sort +4n" to find files/directories with big size in my linux machine but it only showed the files in the current directory...
i also tried using "ls -lR | sort +4n" but it brought up too many files than i could go through.
I am using fedora core 2.
thanks ko12
 
never mind ...i found the directory with the big size and took care of it
ko12
 
For future reference the du command works well.

Mark
 
If you know the minimum size you are looking for you can use this

find / -size +1024 (the + means min, a - will say max, and no +/- means exact 1024k.)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top