Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
UNIX help for class. please help.?
Your CS account has a very small disk quota. If you logout while you are over your quota, you
cannot login again until you talk to the sysadmin. In order to avoid that, you decide to write a small
script that deletes all files ending in .o, and all files named core from your home directory. The
script should then check to make sure you are under quota, and give you a warning if you are not.
this is the problem i am given, and i understand the majority of it. my professor says it can be done ins just a few lines. Im stuck on how to reference quota and check if i am under it. please help.
1 Answer
- BrianLv 41 decade ago
There's a 'quota' command. I've never had a quota so am not familiar with the output format. Type "man quota" at the command line to see the options. It should tell you what your quota is and how much you're using. Parse the output in your script, maybe using "expr" to compare the values.