Commands by brausen (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

Change prompt to MS-DOS one (joke)
This one eliminates the additional backslash at the end (which is not necessary)

Dump bash command history of an active shell user.

rename anime fansubs
renames Anime Episodes to files, that can be parsed by sonarr & co

Let your computer lull you to sleep
Can change language and speed, see espeak man page for options. (Install espeak in your linux distro via yum or apt-get) For insomniacs you may need to enclose in a while true; do ...; done loop ;)

Add to Instapaper
Adds URL to Instapaper. Usage: instapaper-add user@example.com 12345 http://www.commandlinefu.com/

Watch how many tcp connections there are per state every two seconds.
slighty shorter

Remove Thumbs.db files from folders

benchmark web server with apache benchmarking tool
-n 9000 : Number of requests to perform for the benchmarking session -c 900 : Number of multiple requests to perform at a time

count of files from each subfolder
Find the number of files from each folder

Programmatic way to find and set your timezone
1. it find your public ip via ifconfig.io 2. than use this IP to request your timezone via worldtimeapi.org 3. and send it to the command timedatectl set-timezone


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: