commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Exclude 400 client hosts with NFS auto-mounted home directories.
Easily modified for inclusion in your scripts.
For disk space constraint testing. Leaves a little space available for creating temp files, etc. Easily free up the used disk space again by deleting the dummy00 file. Can tailor the testing by building smaller 'blocks' to suit the needs of the testing.
WARNING: do not do this to the '/' (root) filesystem unless you know what you are doing... on some systems it could crash the OS.
put it in crontab to get an alert when / is over 89% utilization.
Bulit-in function in linux, so should work on any linux distribution.
It is a pain grep-ing/sed-ing/awk-ing plain old df. POSIX it!
Very useful set of commands to know when your file system was created.
show physical disk using, except tmpfs, gvfs, and so on.