How can I find total disk space occupied by a certain user, say located in /home/Mary? What function is available in Perl to know this?
How can I find total disk space occupied by a certain user, say located
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.
Perl has
Filesys::DiskUsagefor that. There is just one downside, it doesn’t take the size of the directories while counting. Only the size of the files.