Find the answer to your Linux question:
Results 1 to 3 of 3
All, I have tried du -hcs command which gives me the total usage, i am interested to know how much unused space I have, total size etc. I looked into ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    9

    [SOLVED] how do I find the %usage of /opt

    All,
    I have tried du -hcs command which gives me the total usage, i am interested to know how much unused space I have, total size etc. I looked into the df command but I think that is only for mounted file systems which would work for /opt. I tried

    df -h | grep opt and it returned nothing.

    Thanks in advance.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Try "df -h /opt" instead. Often /opt is mounted on /, so your technique would not show anything grepping for opt.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    9
    Thanks, that was what I was looking for!

Posting Permissions

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