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.
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:
greps your bash history for whatever you type in at the end returning it in reverse chronological order (most recent invocations first), should work on all distros.
works well as an alias
Took one of the samples, added capitalization and removes in between spaces.
The final "echo" is just for readability.
set BLOCK to "title" or any other HTML / RSS / XML tag and curl URL to get everything in-between e.g. some text
Should work with sh, bash, etc.
schema & tables
To export into another backends style, just change backend to one of: access, sybase, oracle, postgres, mysql and sqlite
can show module other
Info about Bluetooth devices.
If you want avoid to be annoyed when playing your favourite video files with your video player, first run this command to stash wrong files (and test tricks to play these wrong files).
This command give you Just the Network Cidr Notation
This will find all the -Xmx[BIGINT] running on a system, add them up for you and give you the total.
Solves these pesky errors you see in the Apache log:
[Fri Jun 28 17:51:00 2013] [emerg] (28)No space left on device: Couldn't create accept lock (/monsoon/opt/apache2/logs/accept.lock.356) (5)
Naturally, can be used to get rid of other semaphores. Note: change the apache user in accordance to your ENV.
..not guaranteed to always be accurate but fun to see how old you Linux installation is based on the root partitions file system creation date.
List system current active ip address
Pipes the header row of ps to STDERR, then greps for the command on the output of ps, removing the grep entry before that.
becuase im lazy and cant be bothered looking at the tv guide to choose a channel , any improvments or comments appreciated