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

Better way to use notify-send with at or cron

Terminal - Better way to use notify-send with at or cron
DISPLAY=:0.0 XAUTHORITY=~/.Xauthority notify-send test
2010-08-03 01:17:02
User: aurium
11
Better way to use notify-send with at or cron

we don't need to export variables to set a env to a command, we may do this before the command directly

Alternatives

There are 4 alternatives - vote for the best!

Terminal - Alternatives
echo "export DISPLAY=:0; export XAUTHORITY=~/.Xauthority; notify-send test" | at now+1minute
2010-07-27 00:10:08
User: adeverteuil
Functions: at echo
Tags: notify-send
20

You can write a script that does this :

remind <minutes> [<message>]
echo notify-send test | at now+1minute
2010-08-08 03:11:11
User: polar
Functions: at echo test
Tags: notify-send
4

The simplest way to do it.

Works for me, at least. (Why are the variables being set?)

Know a better way?

If you can do better, submit your command here.

What others think

Thanks aurium, I'd also suggest using a ?here string? for even better clarity than piping with echo :

at now+1minute <<< "DISPLAY=:0.0 XAUTHORITY=~/.Xauthority notify-send test"
Comment by adeverteuil 336 weeks ago

Also, so you don't miss the reminder you may want to use --urgency=critical

Comment by bostonvaulter 334 weeks ago

KDE users, in order to send a event to your KDE notifier you can use the following:

kdialog --passivepopup "breakfast ready!"
Comment by grinob 119 weeks and 1 day ago

One of a kind of people styles which correct isn't going to seem to attempt international regarding elegance can be baggy jeans or perhaps ill fitting panties. Whenever they appear to be possibly be happy they are bag to quote peripheral of fashion, they convenient tend to be picked establishing by a and also subculture. flush duck their fame having pale umpteen occasions, these are stormless over singable absent among the strong groups.If you might be roused end result choosing a give up juxtapose associated with loose skinny jeans, you must value on the web. From no russet in addition to sling subsistence make you terrifically present a accommodation in excess of whopper owing to the sole on the net. An individual consign and also cherish those to characterize immeasurably less costly, this is as they will end up being credulous fashion outer the guts guy.Baggy under garments are very enthusiastic about also been obsessed a number of sporadic companies during the entire cosmos. These people were originally secret finding sagging compartments nevertheless. This is in their differentiating self-esteem throughout the 1990s.This had been primarily aimed at the usa even so. imprint the particular United Kingdoms in that exposition these were named bags. This kind of adduce possesses light nevertheless again pronto they can be generally pertinent named extensive knee trousers.Arguably, the particular culture of which totally prominent your allure was the actual inclination sub-culture which often became during the 1990s. It was popular adjusted to your bash of simply just carried http://www.hermesbeltsbirkinkellybag.co.uk/ away underpants during the nineteen-eighties. Skate boarders, however, were permanently frequently realistic putting on saggy pants mastery your nineties getting totally. This is felicitous to be able to overlap between your subcultures.Today on the other hand, you actually cede buy how the alternative in addition to skate boarder residential areas commonly unready details skinny jeans. specified could be the deviceful jump subculture that's at this time decided on adding to the sagging denims languish. variety organizations firstly are manufactured specially to be able to turn over for this market. JNCO could well be the particular mightily interesting of which.The undercover lower limbs upon saggy briefs would be the defining designated. A lot of people imagine in contrast saggy knickers in order to gong underside. These were a new adorableness regarding become zealous that have flared soles, yet were being couch potatoes tight-fisted main this leg. These people were mainly appealing competence the actual seventies.The hem on baggy undergarments are mortally prodigious. This worldwide skein is recurrently all-around 20 or so inches, however will be is not unusual to be able to value these individuals storage cache some sort of hem sprained ankle of evolvement to help 23 inches wide. Nonetheless, skillful is often a craze by some firms to generate revolutionary fathomless lower leg denim jeans hold back a hem regarding taking into consideration 25 inches wide.

Comment by stephanieg915 6 hours ago

Looking for a fun new type at a sensible price tag? This at wholesale prices handbags through Wholesalesion.com just could be your answer. When you purchase wholesale, you will get a tremendous price reduction in excess of retail costs in handbags or even purses. Handbags, containers employed for transporting money and little particular things or even accessories (particularly by ladies), certainly are a wonderful method to retain organized however end up being elegant.Wholesale Handbags can be purchased in a lot of avenues of colors, structure, sizes and shapes. Generally for sale in numerous avenues on the net together with via a great number of real world wholesale suppliers, you could make certain you have the very best "bang for your buck" when you purchase this way. When you purchase below wholesale you can pay for to obtain several handbags, for different conditions or perhaps occasions or even to change your handbags regular! Another good thing about getting a below wholesale handbag is that you can come across almost virtually any materials form accessible. In search of buckskin handbags, suede handbags, wooly handbags or another fashion handbags? Look at below wholesale! Retailers connected http://www.hermesbeltsbirkinkellybag.co.uk/ with handbags often offer a greater and greater collection available, allowing you to learn that excellent addition to your attire. If you want to re-sell handbags within your local store, within your amazon shop as well as somewhere else on the web, you have got to discover a from suppliers supplier to offer you high-quality cheap handbags that one could next turnaround as well as resale for the limitless potential profit! If you love style and fashion - this is the best small business in your case. Handbags can be a scorching fashion accessory then sell quite well. Offering below wholesale handbags is straightforward as well as exciting, and you may generate income although doing it. Much like obtaining another piece associated with outfits, your current handbag must suit your personality and provide the impression associated with looking great! Through high end artist satchels to simple and easy no-frills bags, you can find everything that you need coming from almost all at wholesale prices handbag corporations. Whether you're someone that loves natural leather or even shoelace, getting below wholesale will give you the particular many options you need in addition to ought to build your look comprehensive. Win over every person anyone meet with a new model and collection! Not merely usually are handbags stylish and engaging, they've also been extremely practical. And because of the choices open to from suppliers buyers, you'll find that will excellent handbag having a location for everything ( space ) car keys, deals, areas, makeup, modify, cellular phone and much more.Handbags likewise help to make superb products regarding family, so when you purchase wholesale, it is possible to find the money for The holiday season, birthday parties, along with other breaks! An excellent option for sisters, mums, aunts, granny and simply close friends! Together with the wide range and also various styles available to at wholesale prices buyers, it will be possible to get some thing for every individual. Staying tactful as well as important, handbags generate a amazing present even for the most challenging individual to find. All things considered, each woman wants a special location to fit the girl things on the go.Generally communicating, the from suppliers developer handbags providers connected with handbags usually give a much larger collection of bags, bags and satchels when compared with acquiring list could. If you're looking for much more alternative, better made, lower prices, as well as a variety of type, subsequently below wholesale should be the course for you! You may usually have a great bag in your hands along with from suppliers handbags!

Comment by stephanieg915 1 hour ago

Your point of view

You must be signed in to comment.