Do some learning...

ls /usr/bin | xargs whatis | grep -v nothing | less
no loop, only one call of grep, scrollable ("less is more", more or less...)

12
2010-01-26 12:59:47

4 Alternatives + Submit Alt

  • compgen -c finds everything in your path. Show Sample Output


    8
    whatis $(compgen -c) 2>/dev/null | less
    bashrc · 2013-02-01 00:03:33 0

  • 7
    for i in $(ls /usr/bin); do whatis $i | grep -v nothing; done | more
    Abiden · 2010-01-26 06:15:54 0
  • Just realized how needless the 'ls' has been... This version is also multilingual, since there is no need to grep for a special key word ("nothing"/"nichts"/"rien"/"nada"...). And it makes use of all the available horizontal space. Show Sample Output


    3
    whatis /usr/bin/* 2> /dev/null | less
    michelsberg · 2013-01-31 22:25:30 0
  • I like it sorted... 2> /dev/null was also needless, since our pipes already select stdin, only.


    2
    whatis $(compgen -c) | sort | less
    michelsberg · 2013-02-01 09:13:56 0

What Others Think

Subclasses for Australia visa and provided that much detail info which is far correct and I would say you can tell everyone that is legal and you can start study as soon as you get your visa though also there are many peoples who can use read more www.gloucestercitynews.net/clearysnotebook/2021/01/10-ways-to-write-a-perfect-essay.html online writing service and get your subject learning going on even if you are not in Australia. its been a long time where you can decide many of things that matter to you and you can check things on time
Falk1993 · 28 weeks and 1 day ago
Hello friends, Are you searching for a platform for your assignment writing? You need not worry I can suggest to you the best one https://www.aresearchguide.com/edubirdie-review.html. This is the best website for assignment writing tasks from school and college. You can check the reviews of these writing services then decide as per your budget.
Yourprom · 19 weeks and 4 days ago
Hello guys, are you also worried about completing your assignment task from college? Here is the solution for all of you. You just need to visit here on this website ihatewritingessays then read the reviews of the writing website which is suitable to your requirements. Then choose the best one out of the list available there. All these websites are reliable and trustworthy.
MarceloFLewis · 15 weeks and 3 days 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: