Commands by saniyasharma (0)

  • bash: commands not found

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

Load your [git-controlled] working files into the vi arglist.
Branch name may be substituted, of course.

Check availability of Websites based on HTTP_CODE

merge multiple jpgs to one picture vertikal
# convert tool is from deb imagemagick-6.q16 apt install imagemagick-6.q16

list all opened ports on host

Convert .flv to .3gp
Download YouTube videos as .flv and convert them to .3gp for your mobile phone.

Directory Tree

Search back through previous commands
Searches backwards through your command-history for the typed text. Repeatedly hitting Ctrl-R will search progressively further. Return invokes the command.

Add a GPL license file to your project

recursive search and replace old with new string, inside files
recursively traverse the directory structure from . down, look for string "oldstring" in all files, and replace it with "newstring", wherever found also: $ grep -rl oldstring . |xargs perl -pi~ -e 's/oldstring/newstring'

Display connections histogram
Displays a connection histogram of active tcp connections. Works even better under an alias. Thanks @Areis1 for sharing this one.


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: