Check how space is distributed on a Linux system












21















I know how to check space left with:



df -h


and I know to check the space of a folder with:



du -ch /path/to/folder/


But let's say I have a 500 GB HardDisk and 350GB are used:




  • Wich is the best tool/command to get how the space is distributed ?


  • Should I do du -ch / ? (I think this is not optimal)


  • There is any special tool/app to do this ?



I'd like an app that stores how the space is distributed in my system, wich are the space occuped in each folder...



I'd like to have something like SpaceSniffer (You can check the windows tool here). It is a Windows program that examine your HardDisk and show in a easy & nice IU how the space is distributed on your computer



This kind of software is awesome for that day you check your HardDisk and it seems you've "lost" hundred of GB's and don't know where they are !





Edit




  • I've tried baobab and runs/works perfectly in my Ubuntu machine, I tested also JDiskReport, here I have to fix some issues but it works in Ubuntu & Windows


  • I assume JDiskReport will work in any  OS with Java installed, that's why I choose as correct answer. I've tried this in Ubuntu, Windows 8, Raspbian and CentOS and works in all of them (you have to install Java)


  • I have to say for those lovers of command-line your choice should be ncdu, it's awesome !!!



Baobab IU:



This is the baobab IU










share|improve this question




















  • 2





    Do you mean [apps.ubuntu.com/cat/applications/baobab/](Disk Usage Analyzer) (baobab)?

    – ignis
    Dec 15 '14 at 10:14













  • Exactly! I saw that after I asked the question, I'm checking it. Thanks !

    – AlvaroAV
    Dec 15 '14 at 10:14













  • @ignis it works perfectly ! Thanks so much !

    – AlvaroAV
    Dec 15 '14 at 10:31
















21















I know how to check space left with:



df -h


and I know to check the space of a folder with:



du -ch /path/to/folder/


But let's say I have a 500 GB HardDisk and 350GB are used:




  • Wich is the best tool/command to get how the space is distributed ?


  • Should I do du -ch / ? (I think this is not optimal)


  • There is any special tool/app to do this ?



I'd like an app that stores how the space is distributed in my system, wich are the space occuped in each folder...



I'd like to have something like SpaceSniffer (You can check the windows tool here). It is a Windows program that examine your HardDisk and show in a easy & nice IU how the space is distributed on your computer



This kind of software is awesome for that day you check your HardDisk and it seems you've "lost" hundred of GB's and don't know where they are !





Edit




  • I've tried baobab and runs/works perfectly in my Ubuntu machine, I tested also JDiskReport, here I have to fix some issues but it works in Ubuntu & Windows


  • I assume JDiskReport will work in any  OS with Java installed, that's why I choose as correct answer. I've tried this in Ubuntu, Windows 8, Raspbian and CentOS and works in all of them (you have to install Java)


  • I have to say for those lovers of command-line your choice should be ncdu, it's awesome !!!



Baobab IU:



This is the baobab IU










share|improve this question




















  • 2





    Do you mean [apps.ubuntu.com/cat/applications/baobab/](Disk Usage Analyzer) (baobab)?

    – ignis
    Dec 15 '14 at 10:14













  • Exactly! I saw that after I asked the question, I'm checking it. Thanks !

    – AlvaroAV
    Dec 15 '14 at 10:14













  • @ignis it works perfectly ! Thanks so much !

    – AlvaroAV
    Dec 15 '14 at 10:31














21












21








21


10






I know how to check space left with:



df -h


and I know to check the space of a folder with:



du -ch /path/to/folder/


But let's say I have a 500 GB HardDisk and 350GB are used:




  • Wich is the best tool/command to get how the space is distributed ?


  • Should I do du -ch / ? (I think this is not optimal)


  • There is any special tool/app to do this ?



I'd like an app that stores how the space is distributed in my system, wich are the space occuped in each folder...



I'd like to have something like SpaceSniffer (You can check the windows tool here). It is a Windows program that examine your HardDisk and show in a easy & nice IU how the space is distributed on your computer



This kind of software is awesome for that day you check your HardDisk and it seems you've "lost" hundred of GB's and don't know where they are !





Edit




  • I've tried baobab and runs/works perfectly in my Ubuntu machine, I tested also JDiskReport, here I have to fix some issues but it works in Ubuntu & Windows


  • I assume JDiskReport will work in any  OS with Java installed, that's why I choose as correct answer. I've tried this in Ubuntu, Windows 8, Raspbian and CentOS and works in all of them (you have to install Java)


  • I have to say for those lovers of command-line your choice should be ncdu, it's awesome !!!



Baobab IU:



This is the baobab IU










share|improve this question
















I know how to check space left with:



df -h


and I know to check the space of a folder with:



du -ch /path/to/folder/


But let's say I have a 500 GB HardDisk and 350GB are used:




  • Wich is the best tool/command to get how the space is distributed ?


  • Should I do du -ch / ? (I think this is not optimal)


  • There is any special tool/app to do this ?



I'd like an app that stores how the space is distributed in my system, wich are the space occuped in each folder...



I'd like to have something like SpaceSniffer (You can check the windows tool here). It is a Windows program that examine your HardDisk and show in a easy & nice IU how the space is distributed on your computer



This kind of software is awesome for that day you check your HardDisk and it seems you've "lost" hundred of GB's and don't know where they are !





Edit




  • I've tried baobab and runs/works perfectly in my Ubuntu machine, I tested also JDiskReport, here I have to fix some issues but it works in Ubuntu & Windows


  • I assume JDiskReport will work in any  OS with Java installed, that's why I choose as correct answer. I've tried this in Ubuntu, Windows 8, Raspbian and CentOS and works in all of them (you have to install Java)


  • I have to say for those lovers of command-line your choice should be ncdu, it's awesome !!!



Baobab IU:



This is the baobab IU







partitioning hard-drive disk-usage






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 19 '17 at 11:43









Zanna

51.2k13139242




51.2k13139242










asked Dec 15 '14 at 10:09









AlvaroAVAlvaroAV

442424




442424








  • 2





    Do you mean [apps.ubuntu.com/cat/applications/baobab/](Disk Usage Analyzer) (baobab)?

    – ignis
    Dec 15 '14 at 10:14













  • Exactly! I saw that after I asked the question, I'm checking it. Thanks !

    – AlvaroAV
    Dec 15 '14 at 10:14













  • @ignis it works perfectly ! Thanks so much !

    – AlvaroAV
    Dec 15 '14 at 10:31














  • 2





    Do you mean [apps.ubuntu.com/cat/applications/baobab/](Disk Usage Analyzer) (baobab)?

    – ignis
    Dec 15 '14 at 10:14













  • Exactly! I saw that after I asked the question, I'm checking it. Thanks !

    – AlvaroAV
    Dec 15 '14 at 10:14













  • @ignis it works perfectly ! Thanks so much !

    – AlvaroAV
    Dec 15 '14 at 10:31








2




2





Do you mean [apps.ubuntu.com/cat/applications/baobab/](Disk Usage Analyzer) (baobab)?

– ignis
Dec 15 '14 at 10:14







Do you mean [apps.ubuntu.com/cat/applications/baobab/](Disk Usage Analyzer) (baobab)?

– ignis
Dec 15 '14 at 10:14















Exactly! I saw that after I asked the question, I'm checking it. Thanks !

– AlvaroAV
Dec 15 '14 at 10:14







Exactly! I saw that after I asked the question, I'm checking it. Thanks !

– AlvaroAV
Dec 15 '14 at 10:14















@ignis it works perfectly ! Thanks so much !

– AlvaroAV
Dec 15 '14 at 10:31





@ignis it works perfectly ! Thanks so much !

– AlvaroAV
Dec 15 '14 at 10:31










8 Answers
8






active

oldest

votes


















9





+50









Another very useful app for this is:



JDiskReport



Is very similar to windows SpaceSniffer and has a very useful and intuitive IU.



You need Java to use it but it can run in every OS with Java



The user interface:



JDiskReport example in linux



Hope it helps !






share|improve this answer


























  • This sounds pretty nice and close to SpaceSniffer ! Thanks!

    – AlvaroAV
    Dec 15 '14 at 10:21



















26














One nice Gnome application is baobab. It comes with default ubuntu installation.



enter image description here



To get it,



sudo apt-get install baobab



apt-cache show baobab

Description-en: GNOME disk usage analyzer
Disk Usage Analyzer is a graphical, menu-driven application to analyse
disk usage in a GNOME environment. It can easily scan either the whole
filesystem tree, or a specific user-requested directory branch (local or
remote).
.
It also auto-detects in real-time any changes made to your home
directory as far as any mounted/unmounted device. Disk Usage Analyzer
also provides a full graphical treemap window for each selected folder.





share|improve this answer





















  • 3





    This was installed in my Ubuntu 14.04 and I didn't know about it

    – AlvaroAV
    Dec 15 '14 at 10:23











  • Yes. It is a standard ubuntu program, installed to a fresh system.

    – Dan Johansen
    Dec 16 '14 at 9:59











  • If they change the name to something more noticeable or integrate it to system (setting) utility more people would find it.

    – Quazi Irfan
    May 10 '15 at 17:34





















21














ncdu



If you use the command line, you could use ncdu. It uses a command-line GUI (ncurses).



Installation



sudo apt-get install ncdu


Description



From its webpage:




[...] ncdu: A disk usage analyzer with an ncurses interface, aimed to be run
on a remote server where you don't have an entire gaphical setup, but
have to do with a simple SSH connection. ncdu aims to be fast, simple
and easy to use, and should be able to run in any minimal POSIX-like
environment with ncurses installed.




Screenshot



Screenshot from the ncdu webpage



Example



Check out the disk usage of your home directory:



ncdu ~


You can enter subdirectories and delete files / whole folders from within the tool.






share|improve this answer
























  • This is awesome ! I've been trying this last minutes and its perfect

    – AlvaroAV
    Dec 15 '14 at 14:36











  • I'm used to Baobab which works great but having a command-line tool is really a nice option :) thanks.

    – daks
    Dec 17 '14 at 13:42



















5














Use the ducks:



du -cks *|sort -rn|head -n11


This will list the top ten subdirectories and files in the current path and the space they are using, and a total.



If you change the -cks to -cms it reports in MB's instead of KB's, which is probably more useful these days.



You can add x to the options on du to prevent it going into other file systems, if needbe.



(Credit: Linux Server Hacks, O'Reilly)






share|improve this answer





















  • 1





    I use dush, for human readable sizes: du -sh | sort -h

    – yuric
    Dec 16 '14 at 17:12











  • @YuriC That's excellent. I'd forgotten the -h option to sort.

    – Nagora
    Dec 20 '14 at 11:57



















2














There is also kde application available on repository: Filelight



You can install it with sudo apt-get install filelight



NAME

filelight - Graphical disk-usage information

SYNOPSIS

filelight [Qt-options] [KDE-options] [path]

DESCRIPTION

Allows you to exactly understand exactly your disk usage by graphically
representating your filesystem as a set of concentric segmented-rings.


Screenshot:-
screenshot






share|improve this answer































    2














    A bit late to collect a bounty, but the elephant in the room is missing!



    gparted is the application of choice for me to show how disk space is distributed in the entire system.



    Even for a Windows system prior to upgrading to Ubuntu, as seen below:



    Screenshot of user prior to moving to Ubuntu






    share|improve this answer

































      0














      If you want to work with the installed tools, you could use du -sh /* which shows you the accumulated usage for each folder (and file) in /
      You can then do this for subfolders until you found what you are looking for.
      Of course, the tools mentioned in other answers are much nicer, but sometimes you can't easily install them.






      share|improve this answer
























      • I asked the question because du seems to be not optimal when using over path /. It takes too long and it's not as intuitive as the other tools. Thanks Anyways !!

        – AlvaroAV
        Dec 16 '14 at 11:23








      • 1





        if you do du -s /* it shouldn't take longer than any of the other tools!

        – Josef
        Dec 16 '14 at 11:26











      • I'll check it then !!

        – AlvaroAV
        Dec 16 '14 at 11:27



















      0














      Another option with simple and easy to understand interface:





      1. xdiskusage ( sudo apt-get install xdiskusage)



        After installing call it from terminal - xdiskusage



      2. KDirStat ( sudo apt-get install kdirstat)



      This app is intended mainly for KDE.





      1. Gd map ( sudo apt-get install gdmap)
        The Gnome alternative to KdirsStat.


      Also this link gives some more apps: http://www.makeuseof.com/tag/how-to-analyze-your-disk-usage-pattern-in-linux/






      share|improve this answer


























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f561605%2fcheck-how-space-is-distributed-on-a-linux-system%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        8 Answers
        8






        active

        oldest

        votes








        8 Answers
        8






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        9





        +50









        Another very useful app for this is:



        JDiskReport



        Is very similar to windows SpaceSniffer and has a very useful and intuitive IU.



        You need Java to use it but it can run in every OS with Java



        The user interface:



        JDiskReport example in linux



        Hope it helps !






        share|improve this answer


























        • This sounds pretty nice and close to SpaceSniffer ! Thanks!

          – AlvaroAV
          Dec 15 '14 at 10:21
















        9





        +50









        Another very useful app for this is:



        JDiskReport



        Is very similar to windows SpaceSniffer and has a very useful and intuitive IU.



        You need Java to use it but it can run in every OS with Java



        The user interface:



        JDiskReport example in linux



        Hope it helps !






        share|improve this answer


























        • This sounds pretty nice and close to SpaceSniffer ! Thanks!

          – AlvaroAV
          Dec 15 '14 at 10:21














        9





        +50







        9





        +50



        9




        +50





        Another very useful app for this is:



        JDiskReport



        Is very similar to windows SpaceSniffer and has a very useful and intuitive IU.



        You need Java to use it but it can run in every OS with Java



        The user interface:



        JDiskReport example in linux



        Hope it helps !






        share|improve this answer















        Another very useful app for this is:



        JDiskReport



        Is very similar to windows SpaceSniffer and has a very useful and intuitive IU.



        You need Java to use it but it can run in every OS with Java



        The user interface:



        JDiskReport example in linux



        Hope it helps !







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 19 '17 at 11:42









        Zanna

        51.2k13139242




        51.2k13139242










        answered Dec 15 '14 at 10:20









        CarlosAVCarlosAV

        1844




        1844













        • This sounds pretty nice and close to SpaceSniffer ! Thanks!

          – AlvaroAV
          Dec 15 '14 at 10:21



















        • This sounds pretty nice and close to SpaceSniffer ! Thanks!

          – AlvaroAV
          Dec 15 '14 at 10:21

















        This sounds pretty nice and close to SpaceSniffer ! Thanks!

        – AlvaroAV
        Dec 15 '14 at 10:21





        This sounds pretty nice and close to SpaceSniffer ! Thanks!

        – AlvaroAV
        Dec 15 '14 at 10:21













        26














        One nice Gnome application is baobab. It comes with default ubuntu installation.



        enter image description here



        To get it,



        sudo apt-get install baobab



        apt-cache show baobab

        Description-en: GNOME disk usage analyzer
        Disk Usage Analyzer is a graphical, menu-driven application to analyse
        disk usage in a GNOME environment. It can easily scan either the whole
        filesystem tree, or a specific user-requested directory branch (local or
        remote).
        .
        It also auto-detects in real-time any changes made to your home
        directory as far as any mounted/unmounted device. Disk Usage Analyzer
        also provides a full graphical treemap window for each selected folder.





        share|improve this answer





















        • 3





          This was installed in my Ubuntu 14.04 and I didn't know about it

          – AlvaroAV
          Dec 15 '14 at 10:23











        • Yes. It is a standard ubuntu program, installed to a fresh system.

          – Dan Johansen
          Dec 16 '14 at 9:59











        • If they change the name to something more noticeable or integrate it to system (setting) utility more people would find it.

          – Quazi Irfan
          May 10 '15 at 17:34


















        26














        One nice Gnome application is baobab. It comes with default ubuntu installation.



        enter image description here



        To get it,



        sudo apt-get install baobab



        apt-cache show baobab

        Description-en: GNOME disk usage analyzer
        Disk Usage Analyzer is a graphical, menu-driven application to analyse
        disk usage in a GNOME environment. It can easily scan either the whole
        filesystem tree, or a specific user-requested directory branch (local or
        remote).
        .
        It also auto-detects in real-time any changes made to your home
        directory as far as any mounted/unmounted device. Disk Usage Analyzer
        also provides a full graphical treemap window for each selected folder.





        share|improve this answer





















        • 3





          This was installed in my Ubuntu 14.04 and I didn't know about it

          – AlvaroAV
          Dec 15 '14 at 10:23











        • Yes. It is a standard ubuntu program, installed to a fresh system.

          – Dan Johansen
          Dec 16 '14 at 9:59











        • If they change the name to something more noticeable or integrate it to system (setting) utility more people would find it.

          – Quazi Irfan
          May 10 '15 at 17:34
















        26












        26








        26







        One nice Gnome application is baobab. It comes with default ubuntu installation.



        enter image description here



        To get it,



        sudo apt-get install baobab



        apt-cache show baobab

        Description-en: GNOME disk usage analyzer
        Disk Usage Analyzer is a graphical, menu-driven application to analyse
        disk usage in a GNOME environment. It can easily scan either the whole
        filesystem tree, or a specific user-requested directory branch (local or
        remote).
        .
        It also auto-detects in real-time any changes made to your home
        directory as far as any mounted/unmounted device. Disk Usage Analyzer
        also provides a full graphical treemap window for each selected folder.





        share|improve this answer















        One nice Gnome application is baobab. It comes with default ubuntu installation.



        enter image description here



        To get it,



        sudo apt-get install baobab



        apt-cache show baobab

        Description-en: GNOME disk usage analyzer
        Disk Usage Analyzer is a graphical, menu-driven application to analyse
        disk usage in a GNOME environment. It can easily scan either the whole
        filesystem tree, or a specific user-requested directory branch (local or
        remote).
        .
        It also auto-detects in real-time any changes made to your home
        directory as far as any mounted/unmounted device. Disk Usage Analyzer
        also provides a full graphical treemap window for each selected folder.






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 10 '15 at 17:51









        Quazi Irfan

        4571618




        4571618










        answered Dec 15 '14 at 10:15









        XavierXavier

        80576




        80576








        • 3





          This was installed in my Ubuntu 14.04 and I didn't know about it

          – AlvaroAV
          Dec 15 '14 at 10:23











        • Yes. It is a standard ubuntu program, installed to a fresh system.

          – Dan Johansen
          Dec 16 '14 at 9:59











        • If they change the name to something more noticeable or integrate it to system (setting) utility more people would find it.

          – Quazi Irfan
          May 10 '15 at 17:34
















        • 3





          This was installed in my Ubuntu 14.04 and I didn't know about it

          – AlvaroAV
          Dec 15 '14 at 10:23











        • Yes. It is a standard ubuntu program, installed to a fresh system.

          – Dan Johansen
          Dec 16 '14 at 9:59











        • If they change the name to something more noticeable or integrate it to system (setting) utility more people would find it.

          – Quazi Irfan
          May 10 '15 at 17:34










        3




        3





        This was installed in my Ubuntu 14.04 and I didn't know about it

        – AlvaroAV
        Dec 15 '14 at 10:23





        This was installed in my Ubuntu 14.04 and I didn't know about it

        – AlvaroAV
        Dec 15 '14 at 10:23













        Yes. It is a standard ubuntu program, installed to a fresh system.

        – Dan Johansen
        Dec 16 '14 at 9:59





        Yes. It is a standard ubuntu program, installed to a fresh system.

        – Dan Johansen
        Dec 16 '14 at 9:59













        If they change the name to something more noticeable or integrate it to system (setting) utility more people would find it.

        – Quazi Irfan
        May 10 '15 at 17:34







        If they change the name to something more noticeable or integrate it to system (setting) utility more people would find it.

        – Quazi Irfan
        May 10 '15 at 17:34













        21














        ncdu



        If you use the command line, you could use ncdu. It uses a command-line GUI (ncurses).



        Installation



        sudo apt-get install ncdu


        Description



        From its webpage:




        [...] ncdu: A disk usage analyzer with an ncurses interface, aimed to be run
        on a remote server where you don't have an entire gaphical setup, but
        have to do with a simple SSH connection. ncdu aims to be fast, simple
        and easy to use, and should be able to run in any minimal POSIX-like
        environment with ncurses installed.




        Screenshot



        Screenshot from the ncdu webpage



        Example



        Check out the disk usage of your home directory:



        ncdu ~


        You can enter subdirectories and delete files / whole folders from within the tool.






        share|improve this answer
























        • This is awesome ! I've been trying this last minutes and its perfect

          – AlvaroAV
          Dec 15 '14 at 14:36











        • I'm used to Baobab which works great but having a command-line tool is really a nice option :) thanks.

          – daks
          Dec 17 '14 at 13:42
















        21














        ncdu



        If you use the command line, you could use ncdu. It uses a command-line GUI (ncurses).



        Installation



        sudo apt-get install ncdu


        Description



        From its webpage:




        [...] ncdu: A disk usage analyzer with an ncurses interface, aimed to be run
        on a remote server where you don't have an entire gaphical setup, but
        have to do with a simple SSH connection. ncdu aims to be fast, simple
        and easy to use, and should be able to run in any minimal POSIX-like
        environment with ncurses installed.




        Screenshot



        Screenshot from the ncdu webpage



        Example



        Check out the disk usage of your home directory:



        ncdu ~


        You can enter subdirectories and delete files / whole folders from within the tool.






        share|improve this answer
























        • This is awesome ! I've been trying this last minutes and its perfect

          – AlvaroAV
          Dec 15 '14 at 14:36











        • I'm used to Baobab which works great but having a command-line tool is really a nice option :) thanks.

          – daks
          Dec 17 '14 at 13:42














        21












        21








        21







        ncdu



        If you use the command line, you could use ncdu. It uses a command-line GUI (ncurses).



        Installation



        sudo apt-get install ncdu


        Description



        From its webpage:




        [...] ncdu: A disk usage analyzer with an ncurses interface, aimed to be run
        on a remote server where you don't have an entire gaphical setup, but
        have to do with a simple SSH connection. ncdu aims to be fast, simple
        and easy to use, and should be able to run in any minimal POSIX-like
        environment with ncurses installed.




        Screenshot



        Screenshot from the ncdu webpage



        Example



        Check out the disk usage of your home directory:



        ncdu ~


        You can enter subdirectories and delete files / whole folders from within the tool.






        share|improve this answer













        ncdu



        If you use the command line, you could use ncdu. It uses a command-line GUI (ncurses).



        Installation



        sudo apt-get install ncdu


        Description



        From its webpage:




        [...] ncdu: A disk usage analyzer with an ncurses interface, aimed to be run
        on a remote server where you don't have an entire gaphical setup, but
        have to do with a simple SSH connection. ncdu aims to be fast, simple
        and easy to use, and should be able to run in any minimal POSIX-like
        environment with ncurses installed.




        Screenshot



        Screenshot from the ncdu webpage



        Example



        Check out the disk usage of your home directory:



        ncdu ~


        You can enter subdirectories and delete files / whole folders from within the tool.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 15 '14 at 11:25









        phoibosphoibos

        15.9k23844




        15.9k23844













        • This is awesome ! I've been trying this last minutes and its perfect

          – AlvaroAV
          Dec 15 '14 at 14:36











        • I'm used to Baobab which works great but having a command-line tool is really a nice option :) thanks.

          – daks
          Dec 17 '14 at 13:42



















        • This is awesome ! I've been trying this last minutes and its perfect

          – AlvaroAV
          Dec 15 '14 at 14:36











        • I'm used to Baobab which works great but having a command-line tool is really a nice option :) thanks.

          – daks
          Dec 17 '14 at 13:42

















        This is awesome ! I've been trying this last minutes and its perfect

        – AlvaroAV
        Dec 15 '14 at 14:36





        This is awesome ! I've been trying this last minutes and its perfect

        – AlvaroAV
        Dec 15 '14 at 14:36













        I'm used to Baobab which works great but having a command-line tool is really a nice option :) thanks.

        – daks
        Dec 17 '14 at 13:42





        I'm used to Baobab which works great but having a command-line tool is really a nice option :) thanks.

        – daks
        Dec 17 '14 at 13:42











        5














        Use the ducks:



        du -cks *|sort -rn|head -n11


        This will list the top ten subdirectories and files in the current path and the space they are using, and a total.



        If you change the -cks to -cms it reports in MB's instead of KB's, which is probably more useful these days.



        You can add x to the options on du to prevent it going into other file systems, if needbe.



        (Credit: Linux Server Hacks, O'Reilly)






        share|improve this answer





















        • 1





          I use dush, for human readable sizes: du -sh | sort -h

          – yuric
          Dec 16 '14 at 17:12











        • @YuriC That's excellent. I'd forgotten the -h option to sort.

          – Nagora
          Dec 20 '14 at 11:57
















        5














        Use the ducks:



        du -cks *|sort -rn|head -n11


        This will list the top ten subdirectories and files in the current path and the space they are using, and a total.



        If you change the -cks to -cms it reports in MB's instead of KB's, which is probably more useful these days.



        You can add x to the options on du to prevent it going into other file systems, if needbe.



        (Credit: Linux Server Hacks, O'Reilly)






        share|improve this answer





















        • 1





          I use dush, for human readable sizes: du -sh | sort -h

          – yuric
          Dec 16 '14 at 17:12











        • @YuriC That's excellent. I'd forgotten the -h option to sort.

          – Nagora
          Dec 20 '14 at 11:57














        5












        5








        5







        Use the ducks:



        du -cks *|sort -rn|head -n11


        This will list the top ten subdirectories and files in the current path and the space they are using, and a total.



        If you change the -cks to -cms it reports in MB's instead of KB's, which is probably more useful these days.



        You can add x to the options on du to prevent it going into other file systems, if needbe.



        (Credit: Linux Server Hacks, O'Reilly)






        share|improve this answer















        Use the ducks:



        du -cks *|sort -rn|head -n11


        This will list the top ten subdirectories and files in the current path and the space they are using, and a total.



        If you change the -cks to -cms it reports in MB's instead of KB's, which is probably more useful these days.



        You can add x to the options on du to prevent it going into other file systems, if needbe.



        (Credit: Linux Server Hacks, O'Reilly)







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 17 '14 at 8:57









        AlvaroAV

        442424




        442424










        answered Dec 16 '14 at 11:04









        NagoraNagora

        1504




        1504








        • 1





          I use dush, for human readable sizes: du -sh | sort -h

          – yuric
          Dec 16 '14 at 17:12











        • @YuriC That's excellent. I'd forgotten the -h option to sort.

          – Nagora
          Dec 20 '14 at 11:57














        • 1





          I use dush, for human readable sizes: du -sh | sort -h

          – yuric
          Dec 16 '14 at 17:12











        • @YuriC That's excellent. I'd forgotten the -h option to sort.

          – Nagora
          Dec 20 '14 at 11:57








        1




        1





        I use dush, for human readable sizes: du -sh | sort -h

        – yuric
        Dec 16 '14 at 17:12





        I use dush, for human readable sizes: du -sh | sort -h

        – yuric
        Dec 16 '14 at 17:12













        @YuriC That's excellent. I'd forgotten the -h option to sort.

        – Nagora
        Dec 20 '14 at 11:57





        @YuriC That's excellent. I'd forgotten the -h option to sort.

        – Nagora
        Dec 20 '14 at 11:57











        2














        There is also kde application available on repository: Filelight



        You can install it with sudo apt-get install filelight



        NAME

        filelight - Graphical disk-usage information

        SYNOPSIS

        filelight [Qt-options] [KDE-options] [path]

        DESCRIPTION

        Allows you to exactly understand exactly your disk usage by graphically
        representating your filesystem as a set of concentric segmented-rings.


        Screenshot:-
        screenshot






        share|improve this answer




























          2














          There is also kde application available on repository: Filelight



          You can install it with sudo apt-get install filelight



          NAME

          filelight - Graphical disk-usage information

          SYNOPSIS

          filelight [Qt-options] [KDE-options] [path]

          DESCRIPTION

          Allows you to exactly understand exactly your disk usage by graphically
          representating your filesystem as a set of concentric segmented-rings.


          Screenshot:-
          screenshot






          share|improve this answer


























            2












            2








            2







            There is also kde application available on repository: Filelight



            You can install it with sudo apt-get install filelight



            NAME

            filelight - Graphical disk-usage information

            SYNOPSIS

            filelight [Qt-options] [KDE-options] [path]

            DESCRIPTION

            Allows you to exactly understand exactly your disk usage by graphically
            representating your filesystem as a set of concentric segmented-rings.


            Screenshot:-
            screenshot






            share|improve this answer













            There is also kde application available on repository: Filelight



            You can install it with sudo apt-get install filelight



            NAME

            filelight - Graphical disk-usage information

            SYNOPSIS

            filelight [Qt-options] [KDE-options] [path]

            DESCRIPTION

            Allows you to exactly understand exactly your disk usage by graphically
            representating your filesystem as a set of concentric segmented-rings.


            Screenshot:-
            screenshot







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 23 '15 at 14:36









            PandyaPandya

            20.6k2897157




            20.6k2897157























                2














                A bit late to collect a bounty, but the elephant in the room is missing!



                gparted is the application of choice for me to show how disk space is distributed in the entire system.



                Even for a Windows system prior to upgrading to Ubuntu, as seen below:



                Screenshot of user prior to moving to Ubuntu






                share|improve this answer






























                  2














                  A bit late to collect a bounty, but the elephant in the room is missing!



                  gparted is the application of choice for me to show how disk space is distributed in the entire system.



                  Even for a Windows system prior to upgrading to Ubuntu, as seen below:



                  Screenshot of user prior to moving to Ubuntu






                  share|improve this answer




























                    2












                    2








                    2







                    A bit late to collect a bounty, but the elephant in the room is missing!



                    gparted is the application of choice for me to show how disk space is distributed in the entire system.



                    Even for a Windows system prior to upgrading to Ubuntu, as seen below:



                    Screenshot of user prior to moving to Ubuntu






                    share|improve this answer















                    A bit late to collect a bounty, but the elephant in the room is missing!



                    gparted is the application of choice for me to show how disk space is distributed in the entire system.



                    Even for a Windows system prior to upgrading to Ubuntu, as seen below:



                    Screenshot of user prior to moving to Ubuntu







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 7 '15 at 9:06

























                    answered Jan 5 '15 at 19:11









                    FabbyFabby

                    27.1k1360161




                    27.1k1360161























                        0














                        If you want to work with the installed tools, you could use du -sh /* which shows you the accumulated usage for each folder (and file) in /
                        You can then do this for subfolders until you found what you are looking for.
                        Of course, the tools mentioned in other answers are much nicer, but sometimes you can't easily install them.






                        share|improve this answer
























                        • I asked the question because du seems to be not optimal when using over path /. It takes too long and it's not as intuitive as the other tools. Thanks Anyways !!

                          – AlvaroAV
                          Dec 16 '14 at 11:23








                        • 1





                          if you do du -s /* it shouldn't take longer than any of the other tools!

                          – Josef
                          Dec 16 '14 at 11:26











                        • I'll check it then !!

                          – AlvaroAV
                          Dec 16 '14 at 11:27
















                        0














                        If you want to work with the installed tools, you could use du -sh /* which shows you the accumulated usage for each folder (and file) in /
                        You can then do this for subfolders until you found what you are looking for.
                        Of course, the tools mentioned in other answers are much nicer, but sometimes you can't easily install them.






                        share|improve this answer
























                        • I asked the question because du seems to be not optimal when using over path /. It takes too long and it's not as intuitive as the other tools. Thanks Anyways !!

                          – AlvaroAV
                          Dec 16 '14 at 11:23








                        • 1





                          if you do du -s /* it shouldn't take longer than any of the other tools!

                          – Josef
                          Dec 16 '14 at 11:26











                        • I'll check it then !!

                          – AlvaroAV
                          Dec 16 '14 at 11:27














                        0












                        0








                        0







                        If you want to work with the installed tools, you could use du -sh /* which shows you the accumulated usage for each folder (and file) in /
                        You can then do this for subfolders until you found what you are looking for.
                        Of course, the tools mentioned in other answers are much nicer, but sometimes you can't easily install them.






                        share|improve this answer













                        If you want to work with the installed tools, you could use du -sh /* which shows you the accumulated usage for each folder (and file) in /
                        You can then do this for subfolders until you found what you are looking for.
                        Of course, the tools mentioned in other answers are much nicer, but sometimes you can't easily install them.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Dec 16 '14 at 11:17









                        JosefJosef

                        17927




                        17927













                        • I asked the question because du seems to be not optimal when using over path /. It takes too long and it's not as intuitive as the other tools. Thanks Anyways !!

                          – AlvaroAV
                          Dec 16 '14 at 11:23








                        • 1





                          if you do du -s /* it shouldn't take longer than any of the other tools!

                          – Josef
                          Dec 16 '14 at 11:26











                        • I'll check it then !!

                          – AlvaroAV
                          Dec 16 '14 at 11:27



















                        • I asked the question because du seems to be not optimal when using over path /. It takes too long and it's not as intuitive as the other tools. Thanks Anyways !!

                          – AlvaroAV
                          Dec 16 '14 at 11:23








                        • 1





                          if you do du -s /* it shouldn't take longer than any of the other tools!

                          – Josef
                          Dec 16 '14 at 11:26











                        • I'll check it then !!

                          – AlvaroAV
                          Dec 16 '14 at 11:27

















                        I asked the question because du seems to be not optimal when using over path /. It takes too long and it's not as intuitive as the other tools. Thanks Anyways !!

                        – AlvaroAV
                        Dec 16 '14 at 11:23







                        I asked the question because du seems to be not optimal when using over path /. It takes too long and it's not as intuitive as the other tools. Thanks Anyways !!

                        – AlvaroAV
                        Dec 16 '14 at 11:23






                        1




                        1





                        if you do du -s /* it shouldn't take longer than any of the other tools!

                        – Josef
                        Dec 16 '14 at 11:26





                        if you do du -s /* it shouldn't take longer than any of the other tools!

                        – Josef
                        Dec 16 '14 at 11:26













                        I'll check it then !!

                        – AlvaroAV
                        Dec 16 '14 at 11:27





                        I'll check it then !!

                        – AlvaroAV
                        Dec 16 '14 at 11:27











                        0














                        Another option with simple and easy to understand interface:





                        1. xdiskusage ( sudo apt-get install xdiskusage)



                          After installing call it from terminal - xdiskusage



                        2. KDirStat ( sudo apt-get install kdirstat)



                        This app is intended mainly for KDE.





                        1. Gd map ( sudo apt-get install gdmap)
                          The Gnome alternative to KdirsStat.


                        Also this link gives some more apps: http://www.makeuseof.com/tag/how-to-analyze-your-disk-usage-pattern-in-linux/






                        share|improve this answer






























                          0














                          Another option with simple and easy to understand interface:





                          1. xdiskusage ( sudo apt-get install xdiskusage)



                            After installing call it from terminal - xdiskusage



                          2. KDirStat ( sudo apt-get install kdirstat)



                          This app is intended mainly for KDE.





                          1. Gd map ( sudo apt-get install gdmap)
                            The Gnome alternative to KdirsStat.


                          Also this link gives some more apps: http://www.makeuseof.com/tag/how-to-analyze-your-disk-usage-pattern-in-linux/






                          share|improve this answer




























                            0












                            0








                            0







                            Another option with simple and easy to understand interface:





                            1. xdiskusage ( sudo apt-get install xdiskusage)



                              After installing call it from terminal - xdiskusage



                            2. KDirStat ( sudo apt-get install kdirstat)



                            This app is intended mainly for KDE.





                            1. Gd map ( sudo apt-get install gdmap)
                              The Gnome alternative to KdirsStat.


                            Also this link gives some more apps: http://www.makeuseof.com/tag/how-to-analyze-your-disk-usage-pattern-in-linux/






                            share|improve this answer















                            Another option with simple and easy to understand interface:





                            1. xdiskusage ( sudo apt-get install xdiskusage)



                              After installing call it from terminal - xdiskusage



                            2. KDirStat ( sudo apt-get install kdirstat)



                            This app is intended mainly for KDE.





                            1. Gd map ( sudo apt-get install gdmap)
                              The Gnome alternative to KdirsStat.


                            Also this link gives some more apps: http://www.makeuseof.com/tag/how-to-analyze-your-disk-usage-pattern-in-linux/







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jan 4 '15 at 13:59

























                            answered Jan 4 '15 at 10:23









                            MuzaffarMuzaffar

                            4,46121432




                            4,46121432






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f561605%2fcheck-how-space-is-distributed-on-a-linux-system%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                Mangá

                                 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕