Ping a URL sending output to file and STDOUT

ping google.com | tee ping-output.txt
The tee (as in "T" junction) command is very useful for redirecting output to two places.
Sample Output
PING google.com (74.125.67.100) 56(84) bytes of data.
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=1 ttl=240 time=88.9 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=2 ttl=240 time=100 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=3 ttl=240 time=96.4 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=4 ttl=240 time=88.9 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=5 ttl=240 time=89.1 ms

2
By: root
2009-01-29 10:26:59

What Others Think

house cleaning spokane Wow! I did not know you can use ipad that way! This is interesting
yeoyeo · 30 weeks and 5 days ago
Merely a smiling visitant here to share the love (:, btw outstanding style. ???????
KayGasaway · 14 weeks and 4 days ago
I was very impressed by this post, this site has always been pleasant news Thank you very much for such an interesting post, and I meet them more often then I visited this site. ???????
KayGasaway · 14 weeks ago
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. ???????
KayGasaway · 13 weeks and 2 days ago
This is such a great resource that you are providing and you give it away for free. ??? ???
KayGasaway · 12 weeks and 4 days ago
We take care of your business technology so you can get back to work. Managed IT services and consulting for municipalities and businesses small business it consulting
KayGasaway · 12 weeks and 2 days ago
Particular interviews furnish firsthand message on mart size, industry trends, ontogeny trends, capitalist landscape and outlook, etc. Onewheel Pint Accessories
KayGasaway · 11 weeks ago
You have made some decent points there. I looked on the internet for more information about the issue and found most people will go along with your views on this web site. Onewheel XR Accessories
KayGasaway · 10 weeks and 3 days ago
You guardians do an astounding web diary, and have some unfathomable substance. Continue doing extraordinary. Computer Support and Services companies near me Rancho Park Los Angeles
KayGasaway · 10 weeks ago
What is Faux Suede? | Advantages and Features of faux suede Leather - Waltery, Please visit our website to get the best & honest information for all kind of leathers.
ayesha · 9 weeks ago
Our website is a place where every man will gain self-confidence, a guarantee of proven products and 100% understanding. We created the website because we want to help in the fight against what is not talked about loudly. Viagra
mohsinkhatri · 8 weeks and 3 days ago
Affordable Pool Repair provides the best pool restoration, renovation, gunite pool finishes, and pool coping in the area of Boston as well as New Hampshire. Pool Deck Services
KayGasaway · 8 weeks and 3 days ago
Royalty-free Quality Loops and Samples For Your Next Big Hit Access dozens of royalty-free music packs, including loops, MIDI, FX, and one-shots. hip hop sounds
KayGasaway · 8 weeks ago
We give women a place to shop for athletic wear that was affordable, good quality and stylish. We know that keeping up with the latest trends and styles can be pricey. That is why we are here. Trendy and affordable all in one place. We got you girls! http://www.ellaathletics.com/">Booty Lifting Leggings
KayGasaway · 7 weeks and 6 days ago
Buy high quality cannabis and vape proudcts from us at great prices. Weed, flowers, cbd oil, vapes, pre-rolls, extracts and have them delivered to you. small cannabis seeds
ayesha · 7 weeks and 5 days ago
Qikink is Indias largest Print On Demand Dropshipping company. Sell Custom branded T-Shirts, Hoodies, Phone Cases, Coffee Mugs & More. Signup Today Custom T-Shirt Printing
jackson2321 · 7 weeks and 4 days ago
Really I enjoy your site with effective and useful information. It is included very nice post with a lot of our resources.thanks for share. i enjoy this post. knotted Gown
KayGasaway · 7 weeks and 3 days ago
Cape Cod Pool Repair launched in 1992, under the original name Affordable Pool Construction, and from our humble beginnings, we have become leaders of the pool industry having worked on over 20,000 pools to date and we are still growing! Pool Remodeling Cape Cod
KayGasaway · 7 weeks and 2 days ago
Providing affordable pool and hot tub services in Winnipeg and surrounding areas. We offer the best pool repair and hot tub maintenance services. hot tub maintenance
KayGasaway · 6 weeks and 6 days ago
I would like to speak to someone about a puppy from your breeding program. http://www.facebook.com/altrdcarbon">Altered Carbon Working Dogs
KayGasaway · 6 weeks and 5 days ago
If your fence is looking less than perfect, it is time for a fence repair in Cape Coral, SW Florida. Gator Fence is the best fence services company in SW Florida and nearby areas and we can give you a fence repair to prove it! A lot of our customers are extremely happy with the final result and I think it is your turn to be one of those customers! vinyl fence cape coral
KayGasaway · 6 weeks and 4 days ago
Daryl is an energetic professional CFO with a background in politics. Daryl has done fundraising, been a candidate, and worked in politically appointed positions in Pennsylvania and Philadelphia. Daryl has worked for Democratic candidates and nominees in 18 additional states. Daryl Lafountain
KayGasaway · 6 weeks and 3 days ago
Really I enjoy your site with effective and useful information. It is included very nice post with a lot of our resources.thanks for share. i enjoy this post. Professional Organizer Training
KayGasaway · 6 weeks and 1 day ago
Upgrade your classroom performance and attendance with Class Companion. CritiColl provides the fast and secure online class attendance and management app. Class Attendance App
KayGasaway · 6 weeks and 1 day ago
We provide the best pool renovation services in Boston, including quartz & gunite plaster, pebble finishes, and more. For Free Estimate TEL: (888) 709-7666 Pool Renovation Services Boston
KayGasaway · 5 weeks and 3 days ago
Simple Moving provides the best residential and commercial moving services in the area of Pasadena, CA. We offer long-distance moving services as well. residential moving services
KayGasaway · 4 weeks and 4 days ago
I have added and shared your site to my social media accounts to send people back to your site because I am sure they will find it extremely helpful too. dry eye treatment
KayGasaway · 4 weeks and 3 days ago
Learn the meaning and healing benefits of dragon vein agate, spiritual connection to the Zodiac, birthstone, and feng shui Shop Genuine Dragon Vein Agate.
ayesha · 3 weeks and 6 days ago
If you don't have the storage available, ask your mattress retailer if it's okay to keep your bed there until you need it delivered. You might be pleasantly surprised.
kenwood · 1 week and 6 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: