Results 1 to 3 of 3

Thread: Program/File size on disk

  1. #1
    Join Date
    Jun 2013
    Droitwich UK

    Program/File size on disk

    How can I find how much disk space individual programs like Firefox and also files are taking up ?

  2. #2
    Join Date
    Mar 2006
    Arlington VA USA
    Xubuntu 16.10 Yakkety Yak

    Re: Program/File size on disk

    There isn't a simple answer to the general question, because in addition to the space taken up by the program files at the time a program is installed, over time the program as it runs will store additional information. In the case of Firefox, those files are likely as time goes on to take up much more space than the program itself.

    For a more specific answer, tailored to Firefox, you can run

    $ du -sh ~/.mozilla/firefox

    to get an idea of what's been saved by Firefox over time.

    If you back off from the requirement that you get specific numbers for each individual program, you might want to try playing around with the du and df commands. The first tells you how much space is taken up by sections of the file systems, and df tells you how much space is free (and in use) by each of the file systems.

    $ man du


    $ man df

    to find out more.

    For example:

    $ sudo du -sh /*

    will tell you how much space is taken up by each of the major directories in the root filesystem.

  3. #3
    Join Date
    Aug 2013

    Re: Program/File size on disk

    You can also check out ncdu which is similar to du with a more "graphic" user interface.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts