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

Delete all but the last 1000 lines of file

Terminal - Delete all but the last 1000 lines of file
ex -c '1,$-1000d' -c 'wq' file
2017-01-10 16:22:57
User: wytten12
Functions: ex
0
Delete all but the last 1000 lines of file

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Thank you for your post quality articles and may be useful for many people.

Makanan Sehat Untuk Paru Paru Basah

Paru Paru Basah Pada Bayi

Paru Paru Kering

Paru Paru Basah Menular

Comment by Agen 17 hours ago

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile.

http://www.friv2games.org.uk "Friv 2"

http://www.unblocked2games.com "Unblocked Games Online"

http://www.yepi12.org "Yepi 2"

http://www.unblockedpbsgames.com "Unblocked Sites"

http://www.y8y8co.com "Y8 Games"

http://www.xboxoneya.com "Xbox One Games"

Comment by unblocked 10 hours ago

Is there a most up-to-date and also profitable technique of advert currently? Should you be thinking Telly advertisements as well as magazines and then that could be untrue for any product or service. Today one-on-one advertising is a bit more profitable compared to mass advertising. Promotional items are one of the productive methods to create your model impression. Promo duffel bags are used to do this as they possibly get to everywhere and might carry out the marketing of your respective product or service as well as model.Question next arises how could you have more from these marketing duffel bags? Very first technique is to give most of these bags for you to sports athletes. Sportsmen are extremely powerful people. Folks idolize all of them being a example and then try to simulate these within the most beneficial technique. Will probably be very intelligent that you provide your promotional products to help sportsmen mainly because it will help you to advertise along with distribute the company just like a outdoors fireplace. Second strategy is to hand your bags to help people if you're planning on of creating your product or service advertising world wide. If your tourists will probably journey to considerably locations they'll take this bags this tends to allow you to advertise your manufacturer as well as product in order to locations that are certainly not simply reached by simply different advert settings. It will also provide your organization credibility inside the take a look at people and a http://www.hermesbeltsbirkinkellybag.co.uk/ global positioning. When people will dsicover the bags having your emblem they may identify it and that will develop a constructive snapshot of the business in them. When they may be to buy something they are going to definitely choose your service since they discover the item. Subsequent way is to hand the particular bags in order to replicate shoppers and have sense special as well as also achieve your goals of advertising. They may hold the particular bags around as well as publicise your product inadvertently.Why duffel bags needs to be used by advertising? One reason is because are being used throughout the year and they are generally in no way old. They may be worthwhile and the ones utilize them. Though the idea that brand name duffel bags are quite costly and plenty of followers are not able to ask them to because they are remote. Once you provide the duffel bags to those lovers they are going to really like them and carry these individuals all around and also complete your own organization's marketing. A few will actually carry out the recommendations advertising campaign which is known the best sort of advertising since it draws in lots more people to buy your merchandise when compared with another function of promoting can.Duffel bags are compatible with campaign simply because they healthy your capacity to purchase. They might seem simple for the advertising purpose however they possess a good capacity to advertise your product or service effectively. There is certainly something that you can look after for using duffel bags for your marketing and advertising of your product. You ought to carefully select the bag having quality because it will fully handle your case business while you're watching persons with these and the ones watching these. If the bags will not be of proper high quality people might dispose of these individuals.

Comment by stephanieg915 4 hours ago

Exactly why do females adore handbags?Men generally ask the question, "Why do you require A different handbag?In . Effectively for many of us charming ladies out there the reply is a straightforward one particular : "A woman can not have too many handbags!"But the facts that attracts us all for you to handbags? I do think the reply is an easy 1. To start with, ladies are generally obviously caring along with organised, we like to get ready and prepared for every single situation : the downpour, sore foot, first-aid plus the numerous items required for an outing with your much loved young children; and to accomplish that we must have something to keep all of our necessities. Additionally although we wish some thing to create our Betty Poppins esque "must bring everything" habit look really good. Consequently, a wonderful carryall handbag has a great balance correctly.I really feel one more reason we all girls have this type of penchant regarding handbags is that, from the property with the ever-changing waist, any handbag constantly meets. They may be in no way also restricted, miserable or even unflattering so may be totally non-discriminatory. You won't ever need to find it hard to receive a handbag to suit, and so you won't ever must go through this publish "I'm not bloody using the even larger size" jazz. You probably know this, not having to undergo this modifying area ordeal can be another large reward.Girls desire to indulge by themselves. That is anything inherent in everyone. Together with the introduction of shopping online the simplicity buying is now more popular then ever amongst young people. Nonetheless, I worry about the standard of these items marketed on-line. Currently I have come across a useful website i mean vmfashion.net, i feel we will placed our rely on for you to.Its a lifestyle website, where you can find lots of bags that may collection your own prerequisite and your budget way too. Really should be able to uncover almost any bags below.You will find a large number of bags positioned on this excellent website including Crossbody Bag, Clutch i465 Bag, Mini Put Bag, Old style Style Bag, Holdall Bag, Leather Satchel and so on. You can choose your current select as well as the ideal thing is always that we have to pay http://www.hermesbeltsbirkinkellybag.co.uk/ out funds only after shipping.I adore their Classic Antique A pair of Techniques Bag. Considering it consists of cowhide, it truly is rather affordable. I have likewise examined some of the responses using their customers quite stimulating. I was thinking of buying one however their goods have been so good i always couldnt withstand and also purchased a pair of rather but got quite a lot of price reduction as well. The quite elegant and durable. You can easily bring, it doesn't matter if you might be university student or an business office master. By far the most cute thing about this bag could it be is not only stylish but will also suited to cart all my requirements like locks clean, charge card or even bills. Should you be imagining to get some sort of handbag Provides you with one to select vmfashion.com and you'll discover the most beneficial inside development collection i mean modern and trendy as well as accessible in many colours.So maybe the next occasion your other half requests your unavoidable issue, it is possible to indicate which until although like to go along with you to some sort of tangled up, not to mention a high-end looking dispatch with an fully completely new wardrobe, they can jump off incredibly lightly, along with you receiving a shiny fresh handbag. And let's be honest, each girl wants a wonderfully vivid, striking and unashamedly extravagant handbag in their own living.

Comment by stephanieg915 4 hours ago

Your point of view

You must be signed in to comment.