Flush and then immediately start watching a file

(> errors.log) && tail -f !^
This is useful for keeping an eye on an error log while developing. The !^ pulls the first arg from the previous command (which needs to be run in a sub-shell for this shortcut to work).

By: root
2009-02-03 16:08:19

What Others Think

Nice tip, but be careful. !^ does not work in shell scripts.
pixelbeat · 651 weeks and 4 days ago
kitchen remodeling evansville in Just found a site a could relate to
yeoyeo · 37 weeks and 3 days ago
great site! glad i found this. any recent updates? painters duluth mn
looneyhans · 23 weeks and 5 days ago
Excellent website! I adore how it is easy on my eyes it is. I am questioning how I might be notified whenever a new post has been made. Looking for more new updates. Have a great day! ??
KayGasaway · 21 weeks and 1 day ago
I truly welcome this superb post that you have accommodated us. I guarantee this would be valuable for the vast majority of the general population. ??
KayGasaway · 20 weeks and 4 days ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. ??
KayGasaway · 20 weeks ago
Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it! ???
KayGasaway · 19 weeks and 4 days ago
I genuinely believed you would probably have something useful to say. All I hear is a bunch of whining about something that you can fix if you were not too busy looking for attention. After all, I know it was my choice to read.. Onewheel Accessories
KayGasaway · 18 weeks and 1 day ago
definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog! Flightfins
KayGasaway · 17 weeks and 1 day ago
I was impressed with the site that you created, so memotipasi many people to be more advanced, there also kunjugi me, as a comparison IT Support near me Cheviot Hills Los Angeles, California
KayGasaway · 16 weeks and 4 days ago
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work cannabis delivery
hiknigarde · 15 weeks and 5 days ago
Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. Site Oficial do DrinkQuit Caps
hiknigarde · 15 weeks and 3 days ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. cleanmymac serial number
hiknigarde · 15 weeks and 1 day 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. buy marijuana
KayGasaway · 14 weeks and 2 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. knotted Gown
KayGasaway · 14 weeks and 1 day ago
All the best brands at one Place in Pakistan, Super Bazar Online Shopping in Pakistan Best Deals available at discounted rates Cah on delivery Service in Karachi, Lahore, Rawalpindi, across Pakistan. Please visit our website for best online shopping experience. Thank You.
KayGasaway · 14 weeks ago
At Cape Cod Pool Repair, we make your backyard pool plastering and renovation projects easy, convenient and enjoyable. Cape Cod Pool Maintenance
KayGasaway · 13 weeks and 6 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. pools winnipeg
KayGasaway · 13 weeks and 4 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! privacy vinyl fence installation
KayGasaway · 13 weeks and 2 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 · 13 weeks and 1 day ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. Interior Design Coaching
KayGasaway · 12 weeks and 6 days ago
Class Companion | Class Attendance App | Class Management Software Classroom Software
KayGasaway · 12 weeks and 6 days ago
Pool Plaster Inc. | quartz plaster | Pool Renovation Services Boston quartzscapes
KayGasaway · 12 weeks and 1 day ago
Simple MovingSimple Moving Company | Residential & Commercial Moving Services cheap mover in Los angeles
KayGasaway · 11 weeks and 1 day ago
Waiting for so long to recover the CRM data can prove to be harmful to some organizations. Hence, concerning both money and time, which is unacceptable. http://salesforcetrainingindia.com/">Salesforce training in Hyderabad
kenwood · 6 weeks and 6 days ago
If you live in the Mississauga Ontario areas and are looking for scrap car removal in Mississauga, Top Cash scrap cars removal offers the best & instant prices for your old Clunkers car scrap yard mississauga
ayesha · 6 weeks and 1 day ago
there are plenty of people out there who promise to grow your Instagram followers by the thousands, but beware. Most of them use fake accounts created by bots to inflate your numbers. http://roiben.com/">iOS developer
kenwood · 4 weeks and 1 day ago
Some reviews are meant for manufacturers only. Thus, manufacturers share their ideas and thoughts about mattresses. Few manufacturers have been into the business of designing mattresses for years now. cheap truck mattress
kenwood · 3 weeks and 6 days ago
Best New Bingo Sites 2021 A2Z Sister Site Free slots no deposit No deposite casino | The Best Place To Find Casinos & their Sister Sites. We are one of the top largest UK online casino index sites, we have enclosed more than 2100 online casino brands their operating companies on our site. Please visit our website for more information and limited offers. Thank You. website
KayGasaway · 1 week and 2 days ago
If You are looking for great quality cheap canvas prints then Oh Sign A Wall is a place where can find the perfect solution for that. Uplifting canvas picture prints or vintage iconic metal signs with tons of designs and wall stickers are waiting for you. And we continuously look for new amazing wall decor must-haves, so visit our site to order canvas prints ?or explore our trending Products.
ayesha · 6 days ago
Ertisun is a handmade jewellery ireland brand inspired by Irish Nature with a passion for unique and delicate jewellery designs. Each piece is uniquely handcrafted with love. Handmade designer jewellery online in Ireland. Please visit our website for more details and get to know about the designer Edyta Rosinska, Thank You. handmade jewellery ireland
KayGasaway · 3 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: