Notices


Reply
Thread Tools
Posts: 67 | Thanked: 34 times | Joined on Apr 2011 @ Co. Wicklow, Ireland
#1
My /opt is pretty much full after installing lots of games.
I have moved some of the large directories over to MyDocs and set symbolic links but want to create more space.
Is there a command or a utility that will tell me the largest files or directories in /opt? If I use the ls commands, all the directories come up as 4096 bytes rather than their true size and I dont really want to go through every directory and sub-directory manually.
Hope someone can help.

Mike
 
Posts: 35 | Thanked: 149 times | Joined on Jul 2011
#2
cd /opt
du -sh *

HTH :-)
 
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#3
Originally Posted by mmarks View Post
My /opt is pretty much full after installing lots of games.
I have moved some of the large directories over to MyDocs and set symbolic links but want to create more space.
Is there a command or a utility that will tell me the largest files or directories in /opt? If I use the ls commands, all the directories come up as 4096 bytes rather than their true size and I dont really want to go through every directory and sub-directory manually.
Hope someone can help.

Mike
Code:
du -x /opt | sort -n
will show all files under /opt, sorted by size ascending.
__________________
May the source be with you.
 
casketizer's Avatar
Posts: 566 | Thanked: 282 times | Joined on Sep 2010 @ Lower Saxony
#4
There is also the really good app "Storage Usage" that lets you visually inspect partition usages and usage by package.
__________________
Nokia N900 - Galaxy S3 - Galaxy Tab
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:07.