Find the answer to your Linux question:
Results 1 to 9 of 9
Hi All Probably a dumb question, but is there a command line entry that will show me the size of my /home please. I have tried "df" but it only ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Aug 2004
    Location
    Malvern, UK
    Posts
    132

    How Big is /home ?


    Hi All

    Probably a dumb question, but is there a command line entry that will show me the size of my /home please. I have tried "df" but it only shows /dev/hd* and the like.

    I want to back it up and need the size to determine what kind of media to use.

    Thanks

    Bubo
    My Computer Once Beat Me at Chess, but it is No Match for Me at Kickboxing !

    Registered Linux User: #417183

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    if you do
    Code:
    du -k /home
    you will get an output of the number of 1024-byte units that /home takes up
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Linux Newbie
    Join Date
    Aug 2004
    Location
    Malvern, UK
    Posts
    132
    Great, thanks.

    Bubo
    My Computer Once Beat Me at Chess, but it is No Match for Me at Kickboxing !

    Registered Linux User: #417183

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    du -H is better

  6. #5
    Just Joined! LinuxBox420's Avatar
    Join Date
    Jan 2005
    Posts
    32
    mount

  7. #6
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Quote Originally Posted by LinuxBox420
    mount
    mount doesn't give the size of a partition...
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  8. #7
    Linux User zba78's Avatar
    Join Date
    Feb 2004
    Location
    Birmingham, England
    Posts
    335
    I think
    Code:
    df -hl
    should work (I'm not at a linux box right now)
    Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi

  9. #8
    Linux User
    Join Date
    Oct 2004
    Location
    Serbia&Montenegro
    Posts
    281
    If you would like to see how much space every user has occupied type this in /home:

    Code:
    du -h --max-depth=1
    Linux registered user #358842
    Human knowledge belongs to the world.

  10. #9
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Quote Originally Posted by variant
    du -H is better
    Not on FC2:
    Code:
    $ du -H
    du: WARNING: use --si, not -H; the meaning of the -H option will soon
    change to be the same as that of --dereference-args (-D)
    37k     .
    $

Posting Permissions

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