Define a quick calculator function

? () { echo "$*" | bc -l; }
defines a handy function for quick calculations from cli. once defined: ? 10*2+3
Sample Output
23?

58
By: fizz
2009-06-28 20:15:30

2 Alternatives + Submit Alt

What Others Think

Another way to do that would be: ? () { let myresult="$*" ; echo $myresult; } That would avoid changing context (launching a new process, that's what "bc" is) and would be much faster if you are using the calculations in some loop or whatever. To ensure that, I made a quick test: I defined "?" as my function, and "x" as your function, and measured their times for a simple compound calculation: time ( for a in {0..999}; do ? "($a*$a-$a)/($a+$a+1)" > /dev/null ; done ) real 0m0.767s user 0m0.624s sys 0m0.144s time ( for a in {0..999}; do x "($a*$a-$a)/($a+$a+1)" > /dev/null ; done ) real 0m6.777s user 0m1.544s sys 0m4.548s Of course, it might be that you would miss some functionality for advanced calculations using the internal shell syntax instead of bc. But then again, bc (-l or not) has its limitations: you can't use it for non-integer exponentials, that is: echo "2^(1/3)" | bc -l Runtime warning (func=(main), adr=9): non-zero scale in exponent I would recommend installing the "concalc" package if you need better mathematical evaluations in shell commands: echo "2^(1/3)" | concalc 1.25992104989487316
Patola · 699 weeks and 6 days ago
sweet! many uses for this, also thanks for concalc...
wires · 699 weeks and 5 days ago
I prefer the Pari calculator which in this situation can be invoked as "gp -q". It gives you tons of functions and an obscene number of decimal points. For some reason when I try to run the "?" function defined above I just get "bash: z: command not found" and for "help ?" I get "help: no help topics match `z'". Any ideas why?
dstahlke · 699 weeks and 5 days ago
@dstahlke this is because you have a file named z in the current directory, the shell expands ? to z, so you get this error message
unixmonkey4488 · 699 weeks and 5 days ago
As long as I've been bash'ing, I didn't know you could use ? as a function name. Thanks for the example for that, even if I don't use the calculator function! :)
hal0thane · 699 weeks and 4 days ago
Is it actually necessary to define a function for "bc"? It is simple enough to do this: <<< "x=1; y=2; p=3*x+2*y; p" bc -l
mpb · 699 weeks and 4 days ago
you can use bash format for very simple calculations like echo $[ 1*2 + 3 ] 5
elementa13 · 699 weeks and 4 days ago
bc <<< 10*2+3
mpb · 699 weeks and 1 day ago
Here is what I have defines: ? for bash arithmetic, calc for awk arithmetic, and a here-string for bc -l arithmetic: # bash arithmetic function ? { echo $[$*] } # awk arithmetic (floating point result) function calc(){ awk "BEGIN{ print $* }" ;} bc -l<<<3/7
greppo · 670 weeks and 4 days ago
Different calculators for different levels: bash for simplest integer operations: echo $[2*(3+5)] 16 awk for floating point and powers function ? { awk "BEGIN{ print $* }" ;} ? '((2+1)/7)^3.5' 0.0515325 concalc for full scientific functions: concalc<<<'sin(32^(1/3))' -0.0332033464121159848 bc for high precision: bc -l<<<3/7 .42857142857142857142 gp for number theory: gp -qf 2.6040699049291378729513930560926568818 E574964
greppo · 670 weeks and 4 days ago
Fixing that: gp for number theory: gp -qf 2.6040699049291378729513930560926568818 E574964
greppo · 670 weeks and 4 days ago
gp for number theory: gp -qf<<<'123456! + 0.' 2.6040699049291378729513930560926568818 E574964
greppo · 670 weeks and 4 days ago
Now if anyone has a way to delete or modify typos in comments, please let me know.
greppo · 670 weeks and 4 days ago
I won't be using this exact command because I don't need a specific function setup for this, but I didn't know about the bc command even though I've been using linux for many years. It's pretty nice. Thumbs up.
sonic · 562 weeks ago
It's where my demons hide great assistance
yeoyeo · 66 weeks and 6 days ago
nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com nadiplastik.com
avideh · 40 weeks and 3 days ago
cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview
steelfiber · 39 weeks ago
WEB SEO WEB SEO WEB SEO WEB SEO
BlackJack · 16 weeks and 5 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale pug puppies indiana Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors!
rahimhh21 · 11 weeks and 5 days ago
Since 2008, Perfect House Pug Puppies has been the leading Pug puppy breeder in the US, providing premium Pug puppies for sale. Each puppy exhibits the professionalism and knowledge that have set Perfect House Pug puppies apart from other pug puppy breeders. The professionals at Perfect House Pug Puppies are dedicated about finding their puppies loving, beloved homes where they can enjoy long, healthy lives. A companion that has been produced for quality, health, and temperament that satisfies the breed standard is guaranteed by Perfect House Pug puppies, the pug breeder that has set the benchmark for exceptional customer satisfaction. If you are looking to buy a baby pug, Black and white pugs, Mini pug puppies for sale, Black and tan pug for sale, Teacup pug puppies for sale, Female pug puppies, pug puppies for sale, pug puppies for sale near me, pug puppies for sale under $500 near me. Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 3 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

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



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: