Find the answer to your Linux question:
Results 1 to 4 of 4
I was wondering if there was any way I could type in a command to tell me how much free space I have left on my hard drive. That's it....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    68

    How much space is on my hard drive?


    I was wondering if there was any way I could type in a command to tell me how much free space I have left on my hard drive. That's it.

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    Odessa, FL
    Posts
    586
    this command will do what you're looking for:
    Code:
    df -h
    it displays the total, used, and available amount of space for each partition

  3. #3
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    Another useful command you may use along with this is du which you can use against a file or folder to get it's size (disk usage). The same -h switch works to make the file sizes 'human readable'.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2004
    Posts
    68
    Exactly what I was looking for. Thank you.

Posting Permissions

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