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 are 5 alternatives - vote for the best!
No need for grep | awk. -P on df will force the mount point to be on the same line as the device
Reduced to only one command. :)
Shorter way to find the device for a given mountpoint
less ressources (processes) needed
Identical output but a different way without having to shoot with the Awk cannon :)
If you can do better, submit your command here.
You must be signed in to comment.