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:
There is 1 alternative - vote for the best!
-P uses the POSIX output format, which makes information on each file system always printed on exactly one line. "column -t" makes a table from the input.
all on one line and you also get the filesystem type
Personally I think line wrap in default df command is annoying for scripting & seeing. So I overwrite it. Maybe more work should be done if wrapped line is over 2...
If you can do better, submit your command here.
You must be signed in to comment.