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:
First column is number of photos, second column is the focal length.
For debian and ubuntu :
sudo apt-get install pdfcrack
xargs is a more elegant approach to executing a command on find results then -exec as -exec is meant as a filtering flag.
With this command you can use shell variables inside sed scripts.
This is useful if the script MUST remain in an external file, otherwise you can simply use an inline -e argument to sed.
Easy way to find your computers IP in one place, ie, twitter
It suppress the need of dyndns clients and remembering the complex names they give you.
I put it inside KAlarm ( the cron GUI for KDE, ubuntu), to update my ip every 3 minutes.
I did not add the cron statements to keep the code clean.
where "cicciobox" is the name of your virtual machine in a Sun VirtualBox server
If like me you do a lot of front-end coding and you have a lot of clients that asks you some little modifications, then you send the modifications back to them in a zip file while ignoring the .git folder and .gitignore file, then copy this zip into your dropbox and send it back to them. They find out a new bug so, rince and repeat? You get the picture. It can be quite tedious.
Alias to produce a list of all subdir sizes in current dir, in reverse order and human readable units. du is executed only once. Remove the slash after the asterisk to include files.
Mirror every lvol in vg00 in hp-ux 11.31
If you want to know what OS are supported on "guest" machines on the Sun VirtualBox server.
It's made for a script use, where you have 3 parameters:
1. parameter is the filename
2. (optional) the encoding for subtitles
3. (optional) the scaling of the video, since fullscreen doesn't mean that the video will be scaled.
Changes are displayed when they are written to the file
No comment: it's easy!
find and normal files and list them sorting with modification time without group
l: with detailed information
t: sort with modification time
r: reverse order
h: show file's size in human-readable format, such as K(kilobytes), M(megabyes) etc.
g: do not show group
speaks out last twitter update using 'say'
Replaces every ocurrence of 'old' for 'new' in all files specified. After the 'i' char you can put a '~' or whatever to create a backup file for each replaced with the name equal to the original plus character.