Adds the stdout (standard output) to the beginning of logfile.txt. Change "command" to whatever command you like, such as 'ls' or 'date', etc. It does this by adding the output to a temporary file, then adding the previous contents of logfile.txt to the temp file, then copying the new contents back to the logfile.txt and removing the temp file.
It will return a ranked list of your most commonly-entered commands using your command history Show Sample Output
Remove all hidden files in a directory excluding current dir . and parent dir .. with .??* that means files with at least two characters.
enlubtsqyuse
cat /tmp/out
subsequently
Show Sample Output
If you don't want to commit files to subversion, and don't want those file to show up when doing an "svn stat", this command is what you need Show Sample Output
Does that count as a win for bzip2? Show Sample Output
Replace "en1" with your network interface (on OS X, usually en0, en1, eth0, etc..) Show Sample Output
This will merge all of the changes from {rev_num} to head on the branch to the current working directory
get cpu info from dmesg
After seeing the command you wish to repeat, just invoke it using the ! syntax.
ncal -e shows the date of Easter this year. ncal -e YYYY shows the date of Easter in a given year. ncal -o works the same way, but for Orthodox dates. Show Sample Output
Shows all linked file and destinations. The 'ls -l' command lists the files in long (1 file per line) format, and the grep command displays only those lines that starts with an l (lower case L) -- a linked file. Updated: Remove reference to hard links because this command does not apply to hard link as others kindly pointed out. Show Sample Output
the -3 show the previous, current, and next month. Show Sample Output
The whatis command displays a short description for the command you list on the command line. It is useful to quickly learn what a command does Show Sample Output
the middle command between the ; and ; is the vi commands that insert that line into the last line of the file, the esc with the carets is literally hitting the escape key, you have to have the smbfs package installed to do it, I use it to access my iTunes music on my mac from my linux PC's with amarok so I can play the music anywhere in the house. among other things, it allows you to access the files on that share from your computer anytime you're on that network.
Allow to read password in a script without showing the password inserted by the user
List files above a given size threshold. Show Sample Output
This is a very powerful command line tool to gather statistics for a Linux system. http://dag.wieers.com/home-made/dstat/ Show Sample Output
Reads a username from Show Sample Output
This command will display only the hosts that are active in the network. Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. 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.
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: