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:
dumpfile is a CSV file, which its 1st field is a phone number in format CC+10 digits
Empty lines are deleted, before the output in format "prefix,ocurrences"
grep по ps aux
show directory three
Deprecated due to a change in the site design: see alternatives.
I was using some twitter bots and twitter bloks my IP. Now im using some proxys and i use these command to validate the tweet was published.
Translate strings from non-german to german (and vice versa) using LEO. Put it in your ~/.bashrc.
To use another language other than english, use an option:
leo -xx words
Valid language options:
ch - chinese
en - english
es - spanish
fr - french
it - italian
pl - polish
pt - portuguese
ru - russian
The other language will always be german!
This command will help you to get Ip address origin of city and country.
I will be happy if someone can shrink the sed command
I used this to get all the remote connection ip addresses connected to my server... I had to start storing and tracking this data so thats why i built this out... probably not optimal as far as the egrep regex but it works ;)
Counts of messages by recipient, with frozen messages excluded.
This is a slightly modified version of http://www.commandlinefu.com/commands/view/4283/recursive-search-and-replace-old-with-new-string-inside-files (which did not work due to incorrect syntax) with the added option to sed inside only files named filename.ext
Replace $USER with the username of the Reddit user in question. To get comment karma instead run...
curl -s http://www.reddit.com/user/$USER/about.json | tr "," "\n" | grep "comment_karma" | tr ": " "\n" | grep -E "[0-9]+" | sed s/"^"/"Comment Karma: "/
Replace default command in skype.desktop file.
Your computer's name is raspberrypi and you want to rename it to pita1.
This command will change both the hostname and the name used for netwrk communications.
remove old index.html if you download it again and organiaz the java script tag on the file index.html
Put it in your ~/.bashrc
google word1 word2 word3...
google '"this search gets quoted"'
A way to display directory structure
I found this command on a different site and thought you guy might enjoy it. Just change "YOURSEARCH" to what ever you want to search. Example, "Linux Commands"