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:
Opens a new shell as root. Useful if you want to run a lot of commands as superuser without needing to sudo each of them.
Gets you the latest of everything, and removes any remaining junk. The "sh -c" part is so that you'll only run a single sh command, so you won't get asked more than once for the password.
This allows you to search through your history using the up and down arrows ? i.e. type "cd /" and press the up arrow and you'll search through everything in your history that starts with "cd /".
rsync is the best command ever and I am interested what the rest of you think is the best command
Also lists hidden files, current dir and topdir.
This is useful if you have a collection of files in folders (for example, a bunch of .zip files that are contained in folders) and you want to move them all to a common folder.
I find the ouput of ls -lR to be un-satisfying (why is the path data up there?) and find syntax to be awkward. Running 'du -a' means you will have likely to trim-off filesize data before feeding filenames to the next step in the pipe.
write first line `#!`
This is one way to find out.
g clone --local --bare . /repo.git
g remote add alias /repo.git
g push alias branch
g log -p filename
g checkout SHA1_rev
g reset --hard
g checkout -b new_branch
g ls-files --deleted
use .ssh file to login the server
extracting .ace files yay
typing history it's a long way but typing only h it's my way it works in whatever distro or OSes or shells that you use, you know, only for easyness :)
Just type 2 characters and enter, you will be back.
Affiche des infos detaillees sur vos connexions reseaux.
Port en ?coute, protocole, paquets, adresses, ustilisateur, PID etc...
Will find all files containing "sample" in the current directory and in the directories below.
To disable the requirement for the sender to be authenticated:
Set-DistributionGroup -Identity Name-of-Dist-Group -RequireSenderAuthenticationEnabled $false
To disable the group:
ramdomize the execution of the command echo 'hello world!'
Empty the trash when the icon stay in the non-empty state