Commands by pranavkn (5)

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

finding cr-lf files aka dos files with ^M characters
its useful to run dos2unix command later on them.

backup and remove files with access time older than 5 days.
create an archive of files with access time older than 5 days, and remove original files.

Reverse a file

Gets the english pronunciation of a phrase
Usage examples: say hello say "hello world" say hello+world

Convert deb to rpm
converts between Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats ... It also supports LSB packages.

What is the use of this switch ?
Find the usage of a switch with out searching through the entire man page. Usage: manswitch [cmd] [switch] Eg: $manswitch grep silent ____________________________ In simple words $man | grep "\-" Eg: $man grep | grep "\-o" This is not a standard method but works.

Convert CSV to JSON
Replace 'csv_file.csv' with your filename.

execute a shell with netcat without -e
how to execute a shell on a server with a netcat binary which doesn't support -e option

Benchmark report generator
Nicely display in html format a detailed report of the machine, including cpu benchmarks.

Test network speed without wasting disk
The above command will send 4GB of data from one host to the next over the network, without consuming any unnecessary disk on either the client nor the host. This is a quick and dirty way to benchmark network speed without wasting any time or disk space. Of course, change the byte size and count as necessary. This command also doesn't rely on any extra 3rd party utilities, as dd, ssh, cat, /dev/zero and /dev/null are installed on all major Unix-like operating systems.


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: