Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    find large files/directories in /opt

    Reply
    mmarks | # 1 | 2011-07-17, 09:56 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ibins | # 2 | 2011-07-17, 09:59 | Report

    cd /opt
    du -sh *

    HTH :-)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jedi | # 3 | 2011-07-17, 10:33 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    casketizer | # 4 | 2011-07-17, 10:38 | Report

    There is also the really good app "Storage Usage" that lets you visually inspect partition usages and usage by package.

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout