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

convert from decimal to hexadecimal

Terminal - convert from decimal to hexadecimal
hex() { bc <<< "obase=16; $1"; }
2011-12-09 13:57:05
User: bjomape
Functions: bc
4
convert from decimal to hexadecimal

Use the standard calculator bc to convert decimals to hex

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
echo $((0x1fe)) $((033))
2011-12-06 02:00:42
User: Mozai
Functions: echo
Tags: bash hex numbers
17

Bash can accept '0x' and '0' notation for hexidecimal and octal numbers, so you just have to output the values.

hex() { printf "%X\n" $1; }
python -c 'print hex(1337)'
2011-12-13 22:03:10
User: atoponce
Functions: python
0

Python is always such much more readable than most shell scripting.

hex() { echo $1 16op | dc; }

Know a better way?

If you can do better, submit your command here.

What others think

obase can be in the range 2-16 and does what you'd expect. I tried it with obase=17 and it did a safe but boring thing: gave me space separated decimal numbers for each digit.

Comment by Mozai 313 weeks and 3 days ago

Looking for http://www.huaracherunpas-cher.fr/nike-huarache-run-pas-cher_61.html the right footwear for http://www.huaracherunpas-cher.fr/huarache-chaussure_122.html you personally among the http://www.huaracherunpas-cher.fr/nike-huarache-free-run-2012_146.html vast options offered http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-bleu_130.html could be a difficult http://www.huaracherunpas-cher.fr/huarache-nike-pas-cher_79.html task, which means you http://www.huaracherunpas-cher.fr/nike-air-huarache-original_144.html should have a greater http://www.huaracherunpas-cher.fr/air-huarache-og_71.html comprehension of the actual sneaker so http://www.huaracherunpas-cher.fr/nike-huarache-light-ultramarine_171.html as to http://www.huaracherunpas-cher.fr/huarache-acheter_83.html accomplish this style of http://www.huaracherunpas-cher.fr/huarache-nike-chaussures_131.html trial. As a result of wide http://www.huaracherunpas-cher.fr/air-huarache-nike_87.html variety of http://www.huaracherunpas-cher.fr/huarache-run_132.html shoes or boots to choose http://www.huaracherunpas-cher.fr/nike-huarache-usa_114.html from, it is then http://www.huaracherunpas-cher.fr/air-huarache-light_139.html very important http://www.huaracherunpas-cher.fr/nike-air-huarache-turquoise_160.html to get a cautious accumulating of real http://www.huaracherunpas-cher.fr/nike-air-huarache-og-retro_101.html information as well as http://www.huaracherunpas-cher.fr/nike-air-force-huarache_124.html perception of that it http://www.huaracherunpas-cher.fr/nike-huarache-pour-femme_155.html is capable of finding http://www.huaracherunpas-cher.fr/chaussure-nike-air-huarache_76.html your http://www.huaracherunpas-cher.fr/huarache-2017_99.html sneaker with higher top quality which is http://www.huaracherunpas-cher.fr/nike-air-huarache-run_43.html ideal for you. However http://www.huaracherunpas-cher.fr/nike-air-huarache-pas-chere_161.html almost all http://www.huaracherunpas-cher.fr/nike-huarache_93.html of the running shoe which http://www.huaracherunpas-cher.fr/nike-air-huarache-bleu_167.html might be available http://www.huaracherunpas-cher.fr/nike-huarache-paris_69.html today can be very expensive, one http://www.huaracherunpas-cher.fr/basket-nike-huarache_45.html can watch http://www.huaracherunpas-cher.fr/huarache-instagram_169.html out for shoe available category wherever http://www.huaracherunpas-cher.fr/nike-huarache-solde_94.html different websites http://www.huaracherunpas-cher.fr/nike-huarache-3_108.html in addition to major stores http://www.huaracherunpas-cher.fr/huarache-chaussures_95.html provide the solutions http://www.huaracherunpas-cher.fr/nike-air-huarache-solde_181.html from lessened prices. This http://www.huaracherunpas-cher.fr/nike-huarache-magenta_51.html really is one particular good http://www.huaracherunpas-cher.fr/nike-air-huarache-1991_65.html way of obtaining http://www.huaracherunpas-cher.fr/huarache-usa_100.html a top quality two http://www.huaracherunpas-cher.fr/nike-huarache-id_164.html of boot that http://www.huaracherunpas-cher.fr/huarache-light_50.html is certainly cost-effective for those http://www.huaracherunpas-cher.fr/huarache-bordeaux_53.html possibly at once available from any http://www.huaracherunpas-cher.fr/nike-huarache-prix_66.html making business with a http://www.huaracherunpas-cher.fr/air-flight-huarache_68.html standing.In order to http://www.huaracherunpas-cher.fr/chaussures-huarache_56.html learn all http://www.huaracherunpas-cher.fr/nouvelle-nike-huarache_82.html of the goods that are on show http://www.huaracherunpas-cher.fr/nike-huarache-2_166.html underneath the http://www.huaracherunpas-cher.fr/achat-nike-huarache_137.html shoe available for purchase type, http://www.huaracherunpas-cher.fr/nike-air-huarache-light_168.html one can possibly go to http://www.huaracherunpas-cher.fr/nike-air-huarache-run-chaussures_174.html the established web http://www.huaracherunpas-cher.fr/chaussure-huarache-nike_173.html page from the business http://www.huaracherunpas-cher.fr/huarache-montante_179.html or even the shop http://www.huaracherunpas-cher.fr/air-huarache-solde_40.html that's at http://www.huaracherunpas-cher.fr/nike-huarache-beige_91.html the moment offering the sale. In this http://www.huaracherunpas-cher.fr/air-nike-huarache_107.html way, you may http://www.huaracherunpas-cher.fr/chaussure-air-huarache_180.html be in the position to http://www.huaracherunpas-cher.fr/nike-huarache-gris_59.html get the large http://www.huaracherunpas-cher.fr/nikeair-huarache_88.html models of types of footwear http://www.huaracherunpas-cher.fr/nike-air-huarache-90_110.html available http://www.huaracherunpas-cher.fr/air-huarache-homme_67.html out there along with the companies http://www.huaracherunpas-cher.fr/acheter-huarache_84.html that include these http://www.huaracherunpas-cher.fr/nike-huarache-leopard_57.html items. On this, then you can http://www.huaracherunpas-cher.fr/air-huarache-run_157.html manage to narrow down http://www.huaracherunpas-cher.fr/nike-air-zoom-huarache_89.html your alternatives http://www.huaracherunpas-cher.fr/huarache-enfant_62.html or even decide which varieties of http://www.huaracherunpas-cher.fr/nike-huarache-boutique_147.html shoe and http://www.huaracherunpas-cher.fr/nike-huarache-2013_159.html also the suppliers you http://www.huaracherunpas-cher.fr/huarache-noir-et-rose_109.html desired to check out should http://www.huaracherunpas-cher.fr/huarache-og-2017_143.html they have the particular shoe http://www.huaracherunpas-cher.fr/nike-huarache-free-light_134.html you needed based http://www.huaracherunpas-cher.fr/huarache-5_74.html on your own personal http://www.huaracherunpas-cher.fr/nike-air-huarache-international_104.html preferences and also http://www.huaracherunpas-cher.fr/nike-huarache-violet_54.html this can present you http://www.huaracherunpas-cher.fr/huarache-free-run_145.html with a simpler http://www.huaracherunpas-cher.fr/air-huarache-paris_138.html strategy for in search of the http://www.huaracherunpas-cher.fr/huarache-noir_86.html proper product. One http://www.huaracherunpas-cher.fr/huarache-noir-et-blanc_96.html should be careful that picking out http://www.huaracherunpas-cher.fr/nike-air-max-huarache-hybrid_121.html connected http://www.huaracherunpas-cher.fr/nike-huarache-jd_46.html with boot ought to http://www.huaracherunpas-cher.fr/basket-huarache_63.html be accomplished on the http://www.huaracherunpas-cher.fr/nike-air-huarache-retro_70.html reputation of the corporation along with http://www.huaracherunpas-cher.fr/nike-huarache-safari_52.html the excellence of the http://www.huaracherunpas-cher.fr/air-huarache-noir_116.html product that they have.There vary http://www.huaracherunpas-cher.fr/nike-id-huarache_158.html websites existing on the http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine-og_75.html internet which http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-rose_58.html provides total information regarding distinct products http://www.huaracherunpas-cher.fr/huarache-air-max_163.html which are still http://www.huaracherunpas-cher.fr/huarache-noir-femme_60.html on show underneath sneaker http://www.huaracherunpas-cher.fr/air-max-huarache_39.html for sale http://www.huaracherunpas-cher.fr/nike-huarache-chaussures_129.html type. Proper care has to be http://www.huaracherunpas-cher.fr/nike-huarache-fille_148.html obtained from the people http://www.huaracherunpas-cher.fr/nike-huarache-femme-pas-cher_140.html even though choosing a unique http://www.huaracherunpas-cher.fr/nike-air-huarache-homme_150.html set of http://www.huaracherunpas-cher.fr/nike-huarache-run_72.html footwear at a web page http://www.huaracherunpas-cher.fr/huarache-4_118.html as many in the internet http://www.huaracherunpas-cher.fr/nike-huarache-toute-noir_154.html websites advertise http://www.huaracherunpas-cher.fr/nike-air-huarache-rouge_47.html locally constructed products that are usually http://www.huaracherunpas-cher.fr/nike-air-huarache-blanche_153.html in resemblance towards http://www.huaracherunpas-cher.fr/nike-huarache-1991_55.html the initial footwear of any http://www.huaracherunpas-cher.fr/nike-air-huarache-mid_78.html organization. Also, it's http://www.huaracherunpas-cher.fr/huarache-beige_106.html also vital that http://www.huaracherunpas-cher.fr/air-huarache-noire_117.html you have the capacity to http://www.huaracherunpas-cher.fr/nike-huarache-free-run-pas-cher_156.html gather the full information regarding http://www.huaracherunpas-cher.fr/huarache-leopard_77.html the organization http://www.huaracherunpas-cher.fr/huarache-nike-blanche_127.html that will manufactured this product that http://www.huaracherunpas-cher.fr/nike-air-huarache-run-pas-cher_98.html may help http://www.huaracherunpas-cher.fr/chaussures-huarache-nike_152.html you have got a http://www.huaracherunpas-cher.fr/nike-air-huarache-chaussures_80.html better idea of http://www.huaracherunpas-cher.fr/huarrache-blanche_135.html the quality of the product http://www.huaracherunpas-cher.fr/nike-huarache-rouge_81.html you desired to buy http://www.huaracherunpas-cher.fr/nike-air-huarache-noir_97.html also to make certain that you http://www.huaracherunpas-cher.fr/nike-air-huarache-beige_112.html make the correct http://www.huaracherunpas-cher.fr/nike-air-flight-huarache-og_48.html choice for your self. The http://www.huaracherunpas-cher.fr/nike-air-huarache-2_92.html truly http://www.huaracherunpas-cher.fr/ great benefit for buying these kind of http://www.huaracherunpas-cher.fr/nike-air-huarache-safari_73.html footwear can it http://www.huaracherunpas-cher.fr/huarache-nike-noir_149.html be is http://www.huaracherunpas-cher.fr/nike-huarache-taille_49.html cheaper due to lessened charges and it's http://www.huaracherunpas-cher.fr/nike-air-huarache-light-pas-cher_44.html also http://www.huaracherunpas-cher.fr/nike-air-huarache-taille_172.html absolutely feasible for most http://www.huaracherunpas-cher.fr/nike-air-huarache-blanc_41.html people to obtain that.Now you're completely http://www.huaracherunpas-cher.fr/air-huarache-grise_142.html realized about footwear for sale http://www.huaracherunpas-cher.fr/nike-air-force-1-huarache_113.html classification, it is http://www.huaracherunpas-cher.fr/free-huarache_103.html time for you http://www.huaracherunpas-cher.fr/boutique-nike-huarache_151.html to perform exploration process in order http://www.huaracherunpas-cher.fr/nike-huarache-ultramarine_125.html that you fully grasp http://www.huaracherunpas-cher.fr/chaussures-air-huarache_128.html with http://www.huaracherunpas-cher.fr/nike-huarache-femmes_182.html regards to the goods as well http://www.huaracherunpas-cher.fr/huarache-bleu_111.html as the companies http://www.huaracherunpas-cher.fr/nike-huarache-marron_165.html that take presctiption show. http://www.huaracherunpas-cher.fr/nike-huarache-blanc_85.html If you're planning to http://www.huaracherunpas-cher.fr/nike-huarache-agassi_133.html buy on the internet, http://www.huaracherunpas-cher.fr/nike-air-huarache-prix_120.html you have to enroll http://www.huaracherunpas-cher.fr/huarache-femmes_170.html with the web page http://www.huaracherunpas-cher.fr/nike-huarache-premium_126.html providing total specifics of the http://www.huaracherunpas-cher.fr/air-huarache-blanc_123.html person in http://www.huaracherunpas-cher.fr/air-huarache-femme_90.html order that when the exchange has become http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine_64.html executed; the http://www.huaracherunpas-cher.fr/nike-air-flight-huarache_102.html product will probably http://www.huaracherunpas-cher.fr/nike-air-huarache-og_162.html be brought to your stated address inside http://www.huaracherunpas-cher.fr/huarache-light-og_105.html chosen time http://www.huaracherunpas-cher.fr/nike-huarache-homme_141.html period. Anybody can also investigate http://www.huaracherunpas-cher.fr/nike-huarache-light-og_115.html opinions that happen http://www.huaracherunpas-cher.fr/huarache-og_183.html to be provided by various users http://www.huaracherunpas-cher.fr/huarache-vintage_42.html who may have currently purchased a distinct couple of footwear out of this category along with coming from a distinct internet site. Studying in the testimonials from the customers, this can help you get more information about the items and also the attributes that aren't noticed or even located in most internet websites.

Comment by scott154 14 weeks and 3 days ago

Your point of view

You must be signed in to comment.