put down the joint and rtfm :)
A very interesting man page!
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.
This will handle the case that the filename has spaces or other characters that need to be escaped.
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
Nice for ie6 for linux
Get the complete distro information from shell prompt like distributor ID,code name etc.
Yep, now you can finally google from the command line!
Here's a readable version "for your pleasure"(c):
google() { # search the web using google from the commandline
# syntax: google google
query=$(echo "$*" | sed "s:%:%25:g;s:&:%26:g;s:+:%2b:g;s:;:%3b:g;s: :+:g")
data=$(wget -qO - "https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=$query")
title=$(echo "$data" | tr '}' '\n' | sed "s/.*,\"titleNoFormatting//;s/\":\"//;s/\",.*//;s/\\u0026/'/g;s/\\\//g;s/#39\;//g;s/'amp;/\&/g" | head -1)
url="$(echo "$data" | tr '}' '\n' | sed 's/.*"url":"//;s/".*//' | head -1)"
echo "${title}: ${url} | http://www.google.com/search?q=${query}"
}
Enjoy :)
Show Sample Output
Compile *.c files with "gcc -Wall" in actual directory, using as output file the file name without extension.
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.
Where foodir is the directory you want to zip up.
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 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
Create unique characters (up to 6400) used in the font library.
download a specific file with -f to not display errors and -O to write output to a file named as the remote file. Show Sample Output
This will check out the up-to-date codeigniter user guide from subversion.
Exit with empty line
if you cd into a directory then cd into another directory somewhere else then you run the cd - command you will go to the previous directory you was in!! To go back to the other directory just run it again. So if you are working in 2 different directories then this is the perfect command for you.
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: