#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    180
    Rep Power
    11

    Question Is there anyway of finding available disk space?


    I need to find the available disk space for the /var directory. Unfortunately the only thing that I have found is the 'df' command. However, this command does not single out the availablity, it spits out more data than I need.

    Has anyone done this before or know where I can go to find the answer?

    Or, is this just not possible?

    Thanks,
    laura
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    Originally Posted by lauramccord
    I need to find the available disk space for the /var directory. Unfortunately the only thing that I have found is the 'df' command. However, this command does not single out the availablity, it spits out more data than I need.

    Has anyone done this before or know where I can go to find the answer?

    Or, is this just not possible?

    Thanks,
    laura
    Use the os.statvfs function.
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.

IMN logo majestic logo threadwatch logo seochat tools logo