commandlinefu.com is the place to record those command-line gems that you return to again and again.
Delete that bloated snippets file you've been using and share your personal repository with the world. 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.
If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/
You can sign-in using OpenID credentials, or register a traditional username and password.
First-time OpenID users will be automatically assigned a username which can be changed after signing in.
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
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:
That command installs "most" and make this command as the default man reader. The "most" works like "less" (the current man reader), but it render colors for manpages and may do more things. Read "man most".
You can see a preview here: http://www.dicas-l.com.br/dicas-l/20090718.php
search ubuntu's remote package source repositories for a specific program to see which package contains it
this is funny ;)
alias sl="ls" ... is the useful solution, but that's boring ;P and You won't learn to think before You type !
For example: check the APT security keys to make sure the Google digital signature was imported correctly
An apt-get wrapper function which will run the command via sudo, but will run it normally if you're only downloading source files.
This was a bit of an excuse to show off the framework of
cmd && echo true || echo false
...but as you can see, you must be careful about what is in the "true" block to make sure it executes without error, otherwise the "false" block will be executed.
To allow the apt-get return code to pass through, you need to use a more normal if/else block:
apt-get () { if [ "$1" = source ]; then command apt-get "$@"; else sudo apt-get "$@"; fi }
Requires: imagemagick and graphviz
On Debian systems, displays a graph of package dependencies. Works also with other image formats, like svg :
apt-cache dotty bash | dot -T svg | display
Search the names and descriptions of all available packages and prints out the name and the short description.
apt-show-versions is a program that shows what packages in the system may be updated and several useful information. The -u option displays a list of upgradeable packages:
From: http://www.debian.org/doc/manuals/apt-howto/ch-helpers.en.html