Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.
Hide

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:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Matrix Style

Terminal - Matrix Style
echo -e "\e[31m"; while $t; do for i in `seq 1 30`;do r="$[($RANDOM % 2)]";h="$[($RANDOM % 4)]";if [ $h -eq 1 ]; then v="\e[1m $r";else v="\e[2m $r";fi;v2="$v2 $v";done;echo -e $v2;v2="";done;
2009-07-10 04:20:43
User: Patola
Functions: echo
2
Matrix Style

It's the same command as submitted, but first with a command to make all characters green. It's the only way it looked "matrix-like" on my gnome-terminal.

Alternatives

There are 28 alternatives - vote for the best!

Terminal - Alternatives
tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"
2009-06-30 17:23:49
User: allinurl
Functions: dd grep tr
Tags: color
64
echo -e "\e[32m"; while :; do for i in {1..16}; do r="$(($RANDOM % 2))"; if [[ $(($RANDOM % 5)) == 1 ]]; then if [[ $(($RANDOM % 4)) == 1 ]]; then v+="\e[1m $r "; else v+="\e[2m $r "; fi; else v+=" "; fi; done; echo -e "$v"; v=""; done
2009-09-27 15:30:38
User: dennisw
Functions: echo
Tags: color
21

I like the fact the Patola's version uses only ones and zeros, but I also like the sparse output of the other versions. This one combines both of those features and eliminates some unnecessary cruft.

You can vary the sparseness by changing "$(($RANDOM % 5))" to another number. The number in this term "$(($RANDOM % 4))" controls how frequently the numbers are output bold.

LC_ALL=C tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"
2009-07-02 07:10:33
User: zzambia
Functions: dd grep tr
Tags: color
7

Solves "tr" issues with non C-locales under BSD-like systems (like OS X)

COL=$(( $(tput cols) / 2 )); clear; tput setaf 2; while :; do tput cup $((RANDOM%COL)) $((RANDOM%COL)); printf "%$((RANDOM%COL))s" $((RANDOM%2)); done
echo -ne "\e[32m" ; while true ; do echo -ne "\e[$(($RANDOM % 2 + 1))m" ; tr -c "[:print:]" " " < /dev/urandom | dd count=1 bs=50 2> /dev/null ; done
2009-12-19 19:05:04
User: psykotron
Functions: dd echo tr true
Tags: color
4

A bit different from some of the other submissions. Has bold and uses all c printable characters. Change the bs=value to speed up and increase the sizes of the bold and non-bold strings.

Know a better way?

If you can do better, submit your command here.

What others think

If we change the initial '''echo -e "\e[31m"; ''' by '''echo -e "\e[32m"; ''', the color shift from red to green. [more "matrix-realistic"]. Also, we can add a "sleep 0.1" command to slow down the "code".

Nice script, thx.

Comment by nobodyelse 431 weeks and 2 days ago

Cool.

If you do `seq 1 $COLUMNS` instead of `seq 1 30` , terminal will be filled no matter the number of columns in it.

Comment by netkavu 392 weeks and 4 days ago

Photo is usually http://www.huaracherunpas-cher.fr/nike-air-huarache-1991_65.html a newspaper sort http://www.huaracherunpas-cher.fr/huarache-acheter_83.html of the http://www.huaracherunpas-cher.fr/nike-huarache-violet_54.html real http://www.huaracherunpas-cher.fr/ graphic and you will keep http://www.huaracherunpas-cher.fr/nike-huarache-marron_165.html this image for http://www.huaracherunpas-cher.fr/huarache-beige_106.html days on end period. http://www.huaracherunpas-cher.fr/nikeair-huarache_88.html That is why http://www.huaracherunpas-cher.fr/chaussure-huarache-nike_173.html http://www.huaracherunpas-cher.fr/nike-huarache-beige_91.html if you'd like notice flashback http://www.huaracherunpas-cher.fr/nike-huarache-2_166.html of your older http://www.huaracherunpas-cher.fr/nike-air-huarache-prix_120.html remembrances subsequently image http://www.huaracherunpas-cher.fr/nike-air-huarache-og-retro_101.html has become the http://www.huaracherunpas-cher.fr/nike-huarache-light-og_115.html excellent possibilities. http://www.huaracherunpas-cher.fr/nike-air-flight-huarache_102.html But the point is http://www.huaracherunpas-cher.fr/air-huarache-solde_40.html the fact; in case http://www.huaracherunpas-cher.fr/nike-huarache-taille_49.html http://www.huaracherunpas-cher.fr/nike-air-huarache-og_162.html of choosing very best photograph http://www.huaracherunpas-cher.fr/huarache-chaussures_95.html you must have to http://www.huaracherunpas-cher.fr/huarache-leopard_77.html http://www.huaracherunpas-cher.fr/nike-huarache-agassi_133.html choose most effective pictures http://www.huaracherunpas-cher.fr/nike-huarache-free-run-2012_146.html answer without http://www.huaracherunpas-cher.fr/nike-huarache-solde_94.html there is a constant http://www.huaracherunpas-cher.fr/basket-nike-huarache_45.html come on as well http://www.huaracherunpas-cher.fr/chaussure-air-huarache_180.html as extended http://www.huaracherunpas-cher.fr/nike-air-huarache-light-pas-cher_44.html lusting photo. Here just skilled http://www.huaracherunpas-cher.fr/huarache-vintage_42.html http://www.huaracherunpas-cher.fr/nike-huarache-boutique_147.html snapshot shoeh can certainly http://www.huaracherunpas-cher.fr/nike-id-huarache_158.html prepare very best digital http://www.huaracherunpas-cher.fr/nike-huarache-blanc_85.html photography resolution available for http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine-og_75.html http://www.huaracherunpas-cher.fr/nike-huarache-femmes_182.html you; to the http://www.huaracherunpas-cher.fr/nike-huarache-pour-femme_155.html up coming part http://www.huaracherunpas-cher.fr/huarache-usa_100.html you will have particular discussion for http://www.huaracherunpas-cher.fr/nike-huarache-paris_69.html http://www.huaracherunpas-cher.fr/nike-huarache-light-ultramarine_171.html this level; therefore allows http://www.huaracherunpas-cher.fr/air-flight-huarache_68.html take a peek on the http://www.huaracherunpas-cher.fr/huarache-montante_179.html pursuing to get http://www.huaracherunpas-cher.fr/air-huarache-og_71.html particularly this http://www.huaracherunpas-cher.fr/nike-air-huarache-chaussures_80.html time. http://www.huaracherunpas-cher.fr/nike-air-huarache-international_104.html Wedding Photography: Yes photo http://www.huaracherunpas-cher.fr/huarache-noir-femme_60.html would be the http://www.huaracherunpas-cher.fr/nike-air-huarache-bleu_167.html merely remedy which may http://www.huaracherunpas-cher.fr/nike-air-huarache-90_110.html provide you http://www.huaracherunpas-cher.fr/air-huarache-nike_87.html with finest picture http://www.huaracherunpas-cher.fr/nike-air-force-huarache_124.html of a http://www.huaracherunpas-cher.fr/nike-huarache-premium_126.html person's former incidence. Consequently http://www.huaracherunpas-cher.fr/nike-huarache-3_108.html for many http://www.huaracherunpas-cher.fr/nike-air-huarache-retro_70.html situation persons go with acquiring http://www.huaracherunpas-cher.fr/free-huarache_103.html greatest images resolution yet http://www.huaracherunpas-cher.fr/nike-air-huarache-2_92.html http://www.huaracherunpas-cher.fr/nike-huarache-gris_59.html amongst those the most http://www.huaracherunpas-cher.fr/nike-huarache-jd_46.html effective occasions http://www.huaracherunpas-cher.fr/nike-huarache-usa_114.html is wedding. So it is http://www.huaracherunpas-cher.fr/nike-huarache-run-pas-cher_61.html important to help http://www.huaracherunpas-cher.fr/air-max-huarache_39.html keep wedding and http://www.huaracherunpas-cher.fr/nike-air-huarache-homme_150.html reception time http://www.huaracherunpas-cher.fr/nike-huarache-prix_66.html with the help http://www.huaracherunpas-cher.fr/nike-air-flight-huarache-og_48.html of finest pictures remedy http://www.huaracherunpas-cher.fr/nike-huarache-fille_148.html plus this particular http://www.huaracherunpas-cher.fr/nike-air-huarache-original_144.html portion you don't http://www.huaracherunpas-cher.fr/achat-nike-huarache_137.html ever get any http://www.huaracherunpas-cher.fr/nike-air-huarache-noir_97.html greater answer http://www.huaracherunpas-cher.fr/huarache-nike-blanche_127.html in comparison http://www.huaracherunpas-cher.fr/huarache-enfant_62.html with Photoshoeh Employ Questionnaire. Essential http://www.huaracherunpas-cher.fr/huarache-instagram_169.html part of this http://www.huaracherunpas-cher.fr/huarache-nike-noir_149.html photography shoeh http://www.huaracherunpas-cher.fr/nike-air-huarache-blanc_41.html is; the following you http://www.huaracherunpas-cher.fr/huarache-noir_86.html can obtain http://www.huaracherunpas-cher.fr/air-huarache-noir_116.html finest photography remedy http://www.huaracherunpas-cher.fr/nike-air-huarache-pas-chere_161.html through the http://www.huaracherunpas-cher.fr/huarache-bordeaux_53.html help of very best http://www.huaracherunpas-cher.fr/huarache-chaussure_122.html camera and for that http://www.huaracherunpas-cher.fr/nike-air-huarache-safari_73.html reason you will http://www.huaracherunpas-cher.fr/nike-huarache-free-run-pas-cher_156.html get many practical http://www.huaracherunpas-cher.fr/nike-air-max-huarache-hybrid_121.html photo in your wedding http://www.huaracherunpas-cher.fr/huarache-femmes_170.html and http://www.huaracherunpas-cher.fr/nike-air-huarache-run_43.html reception. On http://www.huaracherunpas-cher.fr/nike-air-huarache-turquoise_160.html other hand there is http://www.huaracherunpas-cher.fr/air-huarache-femme_90.html many trivial times http://www.huaracherunpas-cher.fr/huarache-light-og_105.html that generate main effects http://www.huaracherunpas-cher.fr/huarache-4_118.html on http://www.huaracherunpas-cher.fr/huarrache-blanche_135.html the coronary heart and specialty http://www.huaracherunpas-cher.fr/nike-air-huarache-run-pas-cher_98.html with this image http://www.huaracherunpas-cher.fr/nike-air-huarache-taille_172.html shoeh is usually that http://www.huaracherunpas-cher.fr/huarache-5_74.html ; them by http://www.huaracherunpas-cher.fr/huarache-free-run_145.html no http://www.huaracherunpas-cher.fr/huarache-bleu_111.html means get away from these http://www.huaracherunpas-cher.fr/nike-air-huarache-mid_78.html moment to http://www.huaracherunpas-cher.fr/huarache-nike-pas-cher_79.html capture out of http://www.huaracherunpas-cher.fr/nike-huarache-run_72.html your big http://www.huaracherunpas-cher.fr/nike-huarache-safari_52.html event. Inspite of these types http://www.huaracherunpas-cher.fr/huarache-og-2017_143.html of you http://www.huaracherunpas-cher.fr/huarache-noir-et-rose_109.html might have http://www.huaracherunpas-cher.fr/huarache-noir-et-blanc_96.html many improved methods from http://www.huaracherunpas-cher.fr/chaussures-huarache-nike_152.html this level; therefore why http://www.huaracherunpas-cher.fr/nike-huarache-ultramarine_125.html don't http://www.huaracherunpas-cher.fr/acheter-huarache_84.html we find dozens of right http://www.huaracherunpas-cher.fr/nike-air-zoom-huarache_89.html after. Portrait Digital http://www.huaracherunpas-cher.fr/air-nike-huarache_107.html photography: Often it http://www.huaracherunpas-cher.fr/nike-air-huarache-light_168.html can be observed http://www.huaracherunpas-cher.fr/air-huarache-paris_138.html the not merely http://www.huaracherunpas-cher.fr/air-huarache-homme_67.html intended for function http://www.huaracherunpas-cher.fr/air-huarache-grise_142.html but also and http://www.huaracherunpas-cher.fr/nike-huarache-free-light_134.html keep shut the http://www.huaracherunpas-cher.fr/huarache-2017_99.html kin and also loved http://www.huaracherunpas-cher.fr/air-huarache-noire_117.html ones people http://www.huaracherunpas-cher.fr/nike-air-huarache-solde_181.html today choose http://www.huaracherunpas-cher.fr/huarache-run_132.html picking unique variations of http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-bleu_130.html portrait photography remedy. http://www.huaracherunpas-cher.fr/nike-huarache-1991_55.html With regard http://www.huaracherunpas-cher.fr/nike-huarache-homme_141.html to family portrait http://www.huaracherunpas-cher.fr/chaussure-nike-air-huarache_76.html taking pictures http://www.huaracherunpas-cher.fr/huarache-air-max_163.html option only Photoshoeh Rentals http://www.huaracherunpas-cher.fr/nike-air-force-1-huarache_113.html Questionnaire might organise solution for http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-rose_58.html you personally http://www.huaracherunpas-cher.fr/huarache-light_50.html ; simply because came from http://www.huaracherunpas-cher.fr/huarache-og_183.html here you http://www.huaracherunpas-cher.fr/nike-huarache-2013_159.html can obtain http://www.huaracherunpas-cher.fr/nike-air-huarache-blanche_153.html impressive notion pertaining to symbol http://www.huaracherunpas-cher.fr/basket-huarache_63.html pictures http://www.huaracherunpas-cher.fr/nike-huarache-rouge_81.html with the family members whilst http://www.huaracherunpas-cher.fr/nike-huarache-femme-pas-cher_140.html http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine_64.html your company. Despite all these; at http://www.huaracherunpas-cher.fr/nouvelle-nike-huarache_82.html http://www.huaracherunpas-cher.fr/nike-huarache-toute-noir_154.html this point you can http://www.huaracherunpas-cher.fr/nike-huarache_93.html also get best photography alternative http://www.huaracherunpas-cher.fr/nike-huarache-leopard_57.html a variety http://www.huaracherunpas-cher.fr/nike-huarache-id_164.html of special http://www.huaracherunpas-cher.fr/chaussures-huarache_56.html occasion just like; engagement occasion http://www.huaracherunpas-cher.fr/nike-air-huarache-run-chaussures_174.html , birthday celebration, http://www.huaracherunpas-cher.fr/chaussures-air-huarache_128.html company function and several http://www.huaracherunpas-cher.fr/air-huarache-light_139.html different. http://www.huaracherunpas-cher.fr/nike-air-huarache-beige_112.html Most appealing part http://www.huaracherunpas-cher.fr/nike-huarache-chaussures_129.html of this snapshot shoeh http://www.huaracherunpas-cher.fr/boutique-nike-huarache_151.html is that; below you http://www.huaracherunpas-cher.fr/nike-air-huarache-rouge_47.html can http://www.huaracherunpas-cher.fr/air-huarache-run_157.html find best http://www.huaracherunpas-cher.fr/air-huarache-blanc_123.html images answer in the ground breaking http://www.huaracherunpas-cher.fr/huarache-nike-chaussures_131.html method in case http://www.huaracherunpas-cher.fr/nike-huarache-magenta_51.html you intend to retain the services of this particular image shoeh next simply just send out on-line program any time. Last of all; you can find very best understanding associated with taking pictures remedy inside very small amount of time and also that during attractive price. For additional information pertaining to Photoshoeh Employ Quotes be sure to mouse click here

Comment by scott154 6 weeks and 2 days ago

Your point of view

You must be signed in to comment.