for file in $(ls /usr/bin ) ; do man -w $file 2>> nomanlist.txt >/dev/null ; done

Get a list of commands for which there are no manpages

This takes quite a while on my system. You may want to test it out with /bin first, or background it and keep working. If you want to get rid of the "No manual entry for [whatever]" and just have the [whatever], use the following sed command after this one finishes. sed -n 's/^No manual entry for \(.*\)/\1/p' nomanlist.txt
Sample Output
No manual entry for kwsdl_compiler
No manual entry for kxforms
No manual entry for kxkb
No manual entry for kxml_compiler
No manual entry for kxsconfig
No manual entry for kxsrun
No manual entry for
No manual entry for lavaddwav
No manual entry for lavinfo
No manual entry for

2010-07-26 19:39:53

These Might Interest You

  • 0
    icotool -l demo.ico
    k2s · 2012-04-14 09:34:05 0
  • use manpages, they give you "ultimate commands" "ls -SshF --color" list by filesize (biggest at the top) "ls -SshFr --color" list by filesize in reverse order (biggest at the bottom) Show Sample Output

    ls -shF --color
    Viperlin · 2009-09-03 05:45:33 3
  • Depending on the installation only certain of these man pages are installed. 12 is left out on purpose because ISO/IEC 8859-12 does not exist. To also access those manpages that are not installed use opera (or any other browser that supports all the character sets involved) to display online versions of the manpages hosted at for i in $(seq 1 11) 13 14 15 16; do opera$i.7.html; done

    for i in $(seq 1 11) 13 14 15 16; do man iso-8859-$i; done
    penpen · 2009-03-31 19:40:15 1

  • -1
    diskutil list
    grahamperrin · 2012-10-06 21:18:27 0
  • Obviously, you can replace 'man' command with any command in this command line to do useful things. I just want to mention that there is a way to list all the commands which you can execute directly without giving fullpath. Normally all important commands will be placed in your PATH directories. This commandline uses that variable to get commands. Works in Ubuntu, will work in all 'manpage' configured *nix systems. Show Sample Output

    find `echo "${PATH}" | tr ':' ' '` -type f | while read COMMAND; do man -f "${COMMAND##*/}"; done
    mohan43u · 2009-06-13 19:56:24 1
  • Search manpages for a keyword. Very useful when you don't know where to find the information. Show Sample Output

    man -k <keyword>
    raphink · 2009-02-16 15:28:57 2

What Others Think

No need for sed or even the text file. for file in $(ls /usr/bin); do man -w $file 2>&1 | awk '/No/{print $5}'; done
kaedenn · 408 weeks and 1 day ago
This is a misuse of ls! for file in /usr/bin/*; do ; done is sufficient.
ScriptDevil · 408 weeks ago
@kaedenn Looks good. You should submit it as an alternate command. The reason for the extra file was so that I wasn't invoking sed several thousand times during the loop @ScriptDevil Have you even tried your way first? If I remove the ls command, I simply get a directory listing on stdout, not what I'm looking for. If it works for you , great, but either post a full, working command so we see what you tried, or don't post one because it appears to me that you didn't even test your method before posting. This is what I tried based on your post. I get stdout.txt full of the complete list of files, and stderr.txt is empty. for file in /usr/bin/*; do man -w $file 2>>stderr.txt 1>>stdout.txt; done
camocrazed · 408 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: