I need help to write a shell script to calculate the directory space in tabular format.the output will contain the used space,total space & the free space.Please kindly help me on this.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like you are looking for the command “df”. Unfortunately, the output and options depend on whatever flavor of UNIX you happen to be using.
Type “man df” or try “df -h” on a command line to learn more.
Here’s an example from my Mac:
As far as I remember, the output looks very similar on Solaris.