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 2 alternatives - vote for the best!
this is the much easier zsh equivalent ...
whereis (1) - locate the binary, source, and manual page files for a command
Not actually better, just expanded a bit. The "whereis" command has the following output:
gcc: /usr/bin/gcc /usr/lib/gcc /usr/bin/X11/gcc /usr/share/man/man1/gcc.1.gz
therefore the 'ls' error on first line, which could be eliminated with a little extra work.
If you can do better, submit your command here.
You must be signed in to comment.