LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2010, 04:19 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Question Sort files by size


Here's the command to find all the files bigger then ~200 MB and show the size:
Code:
find /some-dir/ -size +200000k | xargs ls -laAh
But it doesn't work for those paths which contain spaces. Can I make it do somehow?
 
Old 12-27-2010, 04:31 AM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
I'd tend to use du e.g.

Code:
find . -size +200000k -exec du -h {} \;
 
1 members found this post helpful.
Old 12-27-2010, 04:46 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Thanks! A little expanding:
Code:
find / -size +200000k -exec du -h {} \; | 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort Directories by size richinsc Linux - General 8 03-11-2010 04:39 PM
Sort files in directories based on the files date... CharlieMike73 Programming 5 09-09-2009 11:04 PM
know how to sort files according to size marsguy Linux - General 2 04-01-2006 08:21 AM
sort files after size Ephracis Linux - Newbie 2 05-14-2005 05:44 PM
increase point size size when printing PDF files newlin Red Hat 0 09-27-2003 08:13 AM


All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration