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.

Universal configuration monitoring and system of record for IT.
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

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

32 bits or 64 bits?

Terminal - 32 bits or 64 bits?
getconf LONG_BIT
2009-08-08 21:22:19
User: caiosba
Functions: getconf
105
32 bits or 64 bits?

Easy and direct way to find this out.

Alternatives

There are 8 alternatives - vote for the best!

Terminal - Alternatives
getconf LONG_BIT
2012-12-12 23:51:51
User: varghjarta
Functions: getconf
20

Needed a quick way to see if my server distro that I setup years ago was running 32bit or not, since with time I had forgotten.

Note: does not check _hardware_ e.g. /proc/cpuinfo but rather the kernel installed

arch
sudo lshw -C cpu|grep width
grep -q '\<lm\>' /proc/cpuinfo && echo 64 bits || echo 32 bits
2013-02-09 13:01:36
User: sputnick
Functions: echo grep
2

This command tell you if your hardware is 32 or 64 bits even if you install a 32bits OS on a 64 bits hardware.

If your distro don't support the -q switch, try doing :

grep &>/dev/null '\<lm\>' /proc/cpuinfo && echo 64 bits || echo 32 bits
isainfo -v
2013-01-04 03:07:28
User: halcyonblue
1

This is likely only valid on Solaris based systems. Unfortunately a lot of the more universal techniques for determining if a system is 32bit or 64bit on x86 solaris fail to give much more information than "i86pc"

Know a better way?

If you can do better, submit your command here.

What others think

Does this return the system's capability or merely its current configuration? I ask because on the new box I recently built to learn with, it reported only 32-bit but I assume it's be 64-bit-capable. (I know this also depends on what version of the OS I installed so I'll do a little more digging on that too since I don't remember offhand.)

Comment by bithaze 388 weeks and 3 days ago

I've run this command on many different systems including Linux, SunOS, etc, and it works great. I've yet to find a POSIX based system it doesn't work on.

I just saw the alternative, 'arch' command and that seems to work good too, but that will output x86 or x86_64 not an integer with the number of bits.

As for looking at /proc/cpuinfo, that will just tell you what your processor is capable of. A lot of times, you'll find a system that is running a 32 bit OS but has a 64 bit processor. So, I would avoid getting details on the processor itself if what you really want to know what your OS is supporting. I suspect that some of the other alternatives might just be checking CPU hardware and not the OS.

I'll stick with getconf LONG_BIT, although now that I know the arch command exists, I'll see if it works on all POSIX systems like the getconf LONG_BIT command seems to.

Comment by sonic 82 weeks ago

The brand-new queerness in you observe, the automobile rivalling schedule Site get truly pressed Newcastle's Northumberland Denture in to the truly first day's Come july 1st and where there is not developed an extremely amazing procedure for get started treating the actual month's away from block car car race. Choice of left over hindrances have to be since consistently extraordinary because of the truth that the actual 'Pitmen's Derby' which duration's contest is primarily no difference to help because of the belief that comfortable guideline.MK is a high-end manufacturer that has actually took its very good quality trustworthiness. Honors like the CFDA Females Style Custom of the Year inside 2000, the CFDA Gents Design Designer of the year in '03 as well as the CFDA Life time Good results Award this year get found the world the reason why the MK's series can be a strain that need considering. specifically takes a administration duty within the style of many items. It's possible for this reason business label features in reality extended to flourish along with attract in order to this sort of large audience. Their view selection has secured a sensation of outstanding excellent and wonder that may definitely vacation spot proponents for many years forward.DKNY designer watches as well as distinct different personal true wrist watches for instance Wall plug designer watches come with an exclusive recognition amount for each and each and every and each and every solution. This may surely secure the two business in addition to prospected customers just like you. Forced to there end up being any kind of style of sort of kind of item issue, the particular suppliers will certainly go through the merchandise identification amount along with certification should the observe will be preliminary. When it is an actual high-end observe, they are going to certainly perform the needed problem for your current trouble.Michael Kors HandbagsCarry ones seaside cargo in the best gimmick throughout beach bags -- the simple tote. Kate Scoop gives crystal clear handheld bags from the nautically crafted Cape Call of duty Griffen along with Hugo Poppy Griffen. Your Hugo Poppy tote parts reddish bridal flowers print out artwork via Hugo Guinness. Train's clear vinyl handbag attached in a sun-drenched fruit buckskin in addition to Lands' Conclude Beach Dwelling Tote are also particular person methods to get satisfying using see-through bags come july 1st.Michael Kors Handbags currently have truly alreadied alreadying present in the the planet for just about any type of sort of prolonged occasion. a http://www.hermesbeltsbirkinkellybag.co.uk/ major level of property owners are vulnerable to stylish bags, superior, classy along with stimulating. An in depth big accessibility of picks are ideally presented through the entire business, each and every wonderful your unrivaled individuality.If the wedding ceremony occasion is sure to arise within the crushed stone, flip washout footwears tend to be a great option. If you are attempting to establish precisely how you are going to suit your superior wedding ensemble with a number of silicone turn flops-don't fret. The days are gone regarding straightforward beaches make use of problem shoes or boots to be the just sneakers decision for beachfront wedding celebration situations. Coastline brides to be nowadays can look at a wide choice of make use of washout gown footwear that go beyond the lean, rubber-soled types olden. A trendy set of magic clothes flip flops, for example these produced by David Madden, are designed to go with the trendy marriage ceremony celebration dress which is usually used around the beachfront.Today, an eye fixed just isn't basically something don to express to occasion. Being an situation involving simple fact, a close look can be an off shoot associated with your self. You may finding almost all kind of watches to show your current uniqueness, you, or in the same manner as a possible attention catcher together with a ton of gem stones. The catch is if you ever get on the web or maybe on the purchasing centre?I get in relation to 12 designer watches from your Internet site Earthenware Check out variety along with was frequently preparing to include things like to help the variety. I have straight found that the excellent place to get these types of designer watches comes from Amazon for an outcome of the reality that besides does The amazon online marketplace provide the nearly all budget friendly value with these kinds of timepieces nonetheless the answer and also transport will be incomparable by type of form of sort of several other merchant. Even so, just before that we could very advocate you to definitely determine with in-depth assessments of those watches prior to a great obtaining option.

Comment by stephanieg915 3 days ago

Demand of Cargo area Inside a Bag TwinEveryone loves to search for convenience in addition to sleep following your full days to weeks busy and also laborious routine. Consequently, one of many comfort and ease factors you have to currently have is a secure your bed collection. However, if your sleep will be garnished having beautiful designs and vivid http://www.hermesbeltsbirkinkellybag.co.uk/ colorings, the idea would help someone to show up at ease and find rid of the uneasiness. Even though quickly, although is an excellent plus a stop through taking versions brain throughout the thrilling in addition to reducing styles and of the cargo area. Exclusively dealing with this young adults and youngsters, his or her adore to almost any decorative goods is greater than anybody. As a result, their bed in a bag double would be the exclusive variety for your kids along with youngsters. These kinds of furniture increase splendor and life to be able to people located typical. It really is less expensive than by ordering individual things.How to buy the sleep in a bag double?You 1st must connect to the size of the sack along with the accessories necessary in order to shop accordingly when buying mattress in a bag side by side collection. The standard two pieces add some your bed protecting such as duvet cover, bed comforter, 1 or 2 wedge pillow shams in addition to bedding or maybe mattress dresses. The twin sets include the 1 normal size bed sheets humiliat. However, twin-XL blankets usually are all 5 inches width in excess of the normal twin bed sheets. Then, pick bedroom cover amongst comforters as well as bedspreads. Bedding contain colourful blankets that go over the bed in the prime in addition to all 5 inches width draping on each part in the cargo area. Bed linen tend to be significant comforters that cover your bed totally to the floor.Variety during sexual intercourse in a bag twinThere is often a number of textiles along with smoothness available in their bed in a very bag two. Your colourful pics and also flowered models imprinted on the linens and blankets produce a vibrant impact within the beholder. Furthermore, young ladies mattresses usually are decked along with warm light red hues, kids your bed using camouflage textures and teens your bed having nautical variations. There are additionally models sold similar to luxurious home bedding, european bed linens as well as toile home bedding sleep within a bag established. Numerous textiles can be used for their bed bedding and pads through comfortable pure cotton bed sheets to help pure cotton rayon.

Comment by stephanieg915 3 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-doudoune_163.html,www.canadagoosefemmehomme2016.fr/canada-goose-victoria-pas-cher_211.html,www.canadagoosefemmehomme2016.fr/veste-de-ski-canada-goose_162.html,www.canadagoosefemmehomme2016.fr/canada-goose-femme-victoria_285.html,www.canadagoosefemmehomme2016.fr/blouson-canada-goose_156.html,www.canadagoosefemmehomme2016.fr/canada-goose-lyon_237.html,www.canadagoosefemmehomme2016.fr/doudoune-style-canada-goose_283.html,www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-enfant_337.html,www.canadagoosefemmehomme2016.fr/canada-goose-femme-solde_457.html,www.canadagoosefemmehomme2016.fr/canada-goose-point-de-vente_371.html,www.canadagoosefemmehomme2016.fr/canada-goose-suisse-prix_276.html,www.canadagoosefemmehomme2016.fr/canada-goose-logo_212.html,www.canadagoosefemmehomme2016.fr/canada-goose-mystique-femme_179.html,www.canadagoosefemmehomme2016.fr/canada-goose-au-canada-prix_54.html,www.canadagoosefemmehomme2016.fr/canada-goose-destockage_165.html,www.canadagoosefemmehomme2016.fr/taille-canada-goose_79.html,www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-3-fois_242.html,www.canadagoosefemmehomme2016.fr/manteau-homme-canada-goose_82.html,www.canadagoosefemmehomme2016.fr/kensington-canada-goose_234.html,www.canadagoosefemmehomme2016.fr/canada-goose-fourrure-amovible_71.html,www.canadagoosefemmehomme2016.fr/canada-goose-chine_250.html,www.canadagoosefemmehomme2016.fr/parka-canada-goose-pas-cher_358.html,www.canadagoosefemmehomme2016.fr/parka-trillium-canada-goose_333.html,www.canadagoosefemmehomme2016.fr/canada-goose-bleu-electrique_187.html,www.canadagoosefemmehomme2016.fr/mystique-canada-goose_343.html,www.canadagoosefemmehomme2016.fr/manteau-canada-goose-homme-pas-cher_341.html,www.canadagoosefemmehomme2016.fr/canada-goose-kingston_424.html,www.canadagoosefemmehomme2016.fr/la-canadienne-canada-goose_294.html,www.canadagoosefemmehomme2016.fr/canada-goose-snow-mantra_209.html,www.canadagoosefemmehomme2016.fr/canada-goose-pour-enfant_217.html,www.canadagoosefemmehomme2016.fr/citadel-parka-canada-goose_62.html,www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher_455.html,www.canadagoosefemmehomme2016.fr/canada-goose-solaris_107.html,www.canadagoosefemmehomme2016.fr/prix-canada-goose-canada_416.html,www.canadagoosefemmehomme2016.fr/boutique-canada-goose_378.html,www.canadagoosefemmehomme2016.fr/canada-goose-laval_347.html,www.canadagoosefemmehomme2016.fr/canada-goose-trilium_181.html,www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-

Comment by sguerra376 2 days ago

http://www.canadagoosefemmehomme2016.fr/acheter-doudoune-canada-goose_258.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-yorkville-bomber_408.html

http://www.canadagoosefemmehomme2016.fr/femmes-canada-goose_281.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-paris-magasin_420.html

http://www.canadagoosefemmehomme2016.fr/palliser-canada-goose_261.html

http://www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose_366.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-��-paris_227.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-bebe_436.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose-new-york_215.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-montreal_267.html

http://www.canadagoosefemmehomme2016.fr/nouvelle-collection-canada-goose_451.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-canada_386.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pour-femme_475.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-une-doudoune-canada-goose_348.html

http://www.canadagoosefemmehomme2016.fr/homme-canadian-goose_180.html

http://www.canadagoosefemmehomme2016.fr/vente-canada-goose_194.html

http://www.canadagoosefemmehomme2016.fr/boutique-canada-goose-france_117.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fourrure-coyote_244.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-homme-noir_115.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-original_190.html

http://www.canadagoosefemmehomme2016.fr/gants-canada-goose_312.html

Comment by sguerra376 14 hours ago

Your point of view

You must be signed in to comment.