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.
If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/
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.
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
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:
Will finish automagically when mplayer quits. Can be run from any directory.
It seems to finish by it self rarely, probably because of some timing issue? There's probably a way around that which I can't think of right now
It willl popup a message for each new entry in /var/log/messages
found on the notify-send howto page on ubuntuforums.org.
Posted here only because it is one of the favourites of mine.
Use acpi and notify-send to report current temperature every five minutes.
Works best in a shell script run at startup. acpi is called for temperature and fed to notify-send for a tooltip. After waiting five minutes, it will start over.
works best in a shell script run at startup. It will ping localhost once and output to null, after it does that, acpi is called for temperature in fahrenheit and piped through to another loop that feeds notify-send for a tooltip. After waiting five minutes, it will start over.
Note:
1) -n option of watch accepts seconds
2) -t option of notify-send accepts milliseconds
3) All quotes stated in the given example are required if notification
message is more than a word.
4) I couldn't get this to run in background (use of & at the end fails). Any
suggestions/improvements welcome.
This is an alias you can add to your .bashrc file to get notified when a job you run in a terminal is done.
example of use
sleep 20; alert
Source:http://www.webupd8.org/2010/07/get-notified-when-job-you-run-in.html
The simplest way to do it.
Works for me, at least. (Why are the variables being set?)
we don't need to export variables to set a env to a command, we may do this before the command directly
You can write a script that does this :
remind <minutes> [<message>]
This will be seen through your system's visual notification system, notify-osd, notification-daemon, etc.
---
sleep accepts s,m,h,d and floats (date; sleep .25m; date)
---
notify-send (-t is in milliseconds && -u low / normal / critical)
man notify-send for more information
---
notification-daemon can use b/i/u/a HTML
Route output to notify-send to show nice messages on the desktop, e.g. title and interpreter of the current radio stream
You will need libnotify-bin for this to work:
sudo aptitude install libnotify-bin
The title is optional.
Options:
-t: expire time in milliseconds.
-u: urgency (low, normal, critical).
-i: icon path.
On Debian-based systems you may need to install the 'libnotify-bin' package.
Useful to advise when a wget download or a simulation ends. Example:
wget URL ; notify-send "Done"