This will crop each page of the PDF by 10mm left, 11cm bottom, 22pts right, and nothing from the top.
to find and cut between to strings with grep and cut Show Sample Output
This command sent the Python version to a file. This is intended to be used in scripts. For some reason, simple redirections didn't work with "python -V" Show Sample Output
For all of the jpgs in a directory, determine their size and if below a threshold remove them forcefully.
If you have a lot of hosts in /etc/hosts this would be very useful. Anyone have any more concise examples?
Grabs your external public IP. Show Sample Output
simply change extension for others programming languages
Display the holidays in December and January for UK/England (2012/2013). Most Linux distros have "gcal" in their package manager system. If not, it is available here: http://www.gnu.org/software/gcal Show Sample Output
if you have a capture file *.eth, and ajp protocol is in use on port 9009, you can paste the above command. You can change the fiile and port name Show Sample Output
cut log from row 100 to row 150.
find the uptime and convert in minutes, works with AIX and Linux too Show Sample Output
This provides better, but not perfect, distribution, and it works for 2^32 ≤ X ≤ 2^64. (A robust distribution requires iteration/recursion and an indeterminate amount of randomness.)
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: