Commands using perl (369)

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

how to export a table in .csv file
Exports the result of query in a csv file

list block devices
Shows all block devices in a tree with descruptions of what they are.

Resample a WAV file with sox
Change the sample rate with sox, the swiss army knife of sound processing.

Find all active ip's in a subnet

Restart openssh-server on your Synology NAS from commandline.
The correct way to restart openssh-server on your synology nas.

Query Wikipedia via console over DNS
Shorter version, works with multiple words.

Show log message including which files changed for a given commit in git.

Check if a machine is online with better UI
I have used single packet, and in a silent mode with no display of ping stats. This is with color and UI improvement to the http://www.commandlinefu.com/commands/view/10220/check-if-a-machine-is-online. It is as per the enhancements suggested.

Find the package that installed a command

Sort contents of a directory with human readable output
Show sizes of all files and directories in a directory in size order. $du -hs * | sort -hr for reverse order. Taken from http://serverfault.com/questions/62411/how-can-i-sort-du-h-output-by-size


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: