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.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
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:
if you want to replace "foo" with "bar" in all files in a folder, and put the resulting files into a new subfolder
Finds a string in files recursively below the current directory on systems without the "egrep" and its "-r" functionality.
You can also use sha1sum and variants for longer passwords
The taskkill command has the option of the curve, for a complete list just type: taskkill /? As we know, but to give a practical example, suppose you want to act only on the user's processes Cicciopalla use this command
Now all you have to do is replace user by your twitter username , pass by your password and the text inside status to whatever you wish to set your status too .
It uses cUrl library to post your messsage
combines mkdir and cd
added quotes around $_, thanx to flatcap!
when editing .bash_profile (or .bashrc), run this to use the new version without having to exit and open a new terminal
One time you logged in, you can prove these method just writing "firefox".
if you lose your sound, this will restart alsa and you will get your sound back
Parsing the output of ls is never a good idea for any reason. Using find this way:
- works with files that have spaces in their names.
- actually lists "sub folders" and not of all files and folders.
- does not break if there are a huge number of files in the current directory.