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.
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:
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:
If you know the URL of a file on a SharePoint server, it's just a matter of logging in with your AD credentials to get the file with cURL
Sweep and download all mp3 (in French) of "Rendez-vous avec X" (Meet with M. X) of French public radio
Balaye et telecharge les episodes depuis 1997
-d Draw the filename at the top-left of the image
-D 1 - delay 1 second between changing slides
This command will show images in subdirectories as well.
This is an "argument calculator" funktion. The precision is set to 4 and you can use dot (.) or comma (,) as decimal mark (which is great for german users with a comma on the numpad).
view is the command: vi -r which opens a file in read-only mode. The + character jumps to the bottom of the logfile where the most relevant information starts. Other aliases can be created for commonly viewed logfiles.
sudo apt-get install libnotify-bin
simple function i found somewhere to open vim help page from the shell
use :h like you would in vim
centos list directories sorted by size
The large context number (-C 1000) is a bit of a hack, but in most of my use cases, it makes sure I'll see the whole log output.
I needed to get a feel for how "old" different websites were, based on their directories.
Discover host and url of media files (ex. flv, mp4, m4v..).
It locate the urls of audio and video files so that they can be recorded.
If you don't have seq, you can use perl.
Set field separator char from command line.
Prints first, second and lsat columns.
Have you ever wondered what the hell was dd command doing? well, there you have it... notice the -USR1 signal :)...
sudo when you mean it
ps aux | grep $USER