Commands by P3ter (1)

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


Check These Out

View webcam output using mplayer
View webcam output using mplayer, with correct fps and outfmt settings according to my webcam model.

SVN Command line branch merge
This will merge all of the changes from {rev_num} to head on the branch to the current working directory

Pronounce an English word using Dictionary.com
This one uses dictionary.com

Bash logger

Find the package that installed a command

Scan your LAN for unauthorized IPs
populate the auth.hosts file with a list of IP addresses that are authorized to be in use and when you run this command it will return the addresses that are pingable and not in the authorized list. Can be combined with the "Command line Twitter" command to tweet unauthorized access.

Command to logout all the users in one command
It's only to logout all other user's except "root"

OSX: Hear pronunciation of a word
I often use this command to learn pronunciation of unfamiliar words.

display an embeded help message from bash script header
With this one liner you can easily output a standard help message using the following convention: Usage: is the start marker Stop at the last #

execute your commands and avoid history records
$ secret_command;export HISTCONTROL= This will make "secret_command" not appear in "history" list.


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: