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:
This commands queries the delicious api then runs the xml through xml2, grabs the urls cuts out the first two columns, passes through uniq to remove duplicates if any, and then goes into linkchecker who checks the links. the links go the blacklist in ~/.linkchecker/blacklist. please see the manual pages for further info peeps. I took me a few days to figure this one out. I how you enjoy it. Also don't run these api more then once a few seconds you can get banned by delicious see their site for info. ~updated for no recursive
this command extends your logical volume. then it does a resize2fs on it as well. added the -r switch to make it launch resize.
git branch -d myfeature
Deleted branch myfeature (was 05e9557)
git checkout develop
Switched to branch 'develop'
git merge --no-ff myfeature
Creating a feature branch
When starting work on a new feature, branch off from the develop branch.
git checkout -b myfeature develop
this creates a tree of your branch merges. very useful if you want to follow the features you add.
shows some logging for the git repo.
Just the commands for the lvreduce I keep forgetting.
if you happen to start with out the -C switch then you a killall -USR1 e2fsck
Compare the disk space for the new and old drive
Step#2 Create a copy of the bootload and partition table!
Quick grab of the data to the new disk!
just a alternative using a saved html file of all of my bookmarks. works well although it takes awhile.
tells you the number of lines in said file, and then tail the last 100 lines ( or how many are messed up) then u take the total amount of lines and then subract the 100 or so lines u DONT WANT, then do a head -n $new_number and then redirect it to new file.db