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:
Type out the command and simply press to see the list of options for that command without having to type --help.
This is useful for working out whether the file that you are unzipping is an evil zip file which will create 200 new files in your current direction
For users looking to simplify management of large entries in files and directories, this command is the key to fun and simplicity. Using the power sort, only a couple of seconds are necessary to accomplish what would take minutes or hours in ?standard? client applications.
tail -n X | head -n 1
prints a specific line, where X is the line number
This is a simple command, but useful when you don't remember what episode need to see :D
Get the complete distro information from shell prompt like distributor ID,code name etc.
Compile *.c files with "gcc -Wall" in actual directory, using as output file the file name without extension.
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.
this application monitors the apps you use most often and load them into memory with their libraries and other dependencies.
So now, when you launch Firefox or Thunderbird or OpenOffice, the display is immediate as on Mac.
WARNING! This command may set an invalid permission under your current directory.
This command will set the 0644 permissions to all files under your current directory. An alternative version of this command is: find ~/.ssh -type f -exec chmod 0600 {} \;
This is the first version of the Sublime Text 2 packaging so there might be bugs.
doskey is the Windows cmd.exe equivalent of the Unix alias. '$*' means 'all parameters'
This example is like alias l='ls -alrt': it will display files from oldest to newest, for one or more directories.
doskey /MACROS list macros defined for cmd.exe, like 'alias' list aliases defined for the current Unix shell.
Starts the Performance Monitor console that monitors the system load. It will help to observe and test the system or parts of the system and also help to find any problems.
Debian-specific but very useful as cron files are prone to very subtle gotchas
The legend in the first column:
i = installed
p = installable
Create unique characters (up to 6400) used in the font library.