Commands by gnpf (1)

What's this?

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.

Share Your Commands


Check These Out

Delete an IPtable rules based on row number

Convert PDF to JPEG using Ghostscript
Converting your PDF file to JPEG images. You can set resolution by -r option (default: 72dpi).

lists files and folders in a folder
lists files and folders in a folder with summary.

Find the files that contain a certain term
Simple use of find and grep to recursively search a directory for files that contain a certain term.

Get the size of all the directories in current directory (Sorted Human Readable)
This allows the output to be sorted from largest to smallest in human readable format.

clear all non-ascii chars of file.txt

list block devices
Shows all block devices in a tree with descruptions of what they are.

Length of longest line of code
Here's an awk version.

list only directories in reverse order
list only directories in reverse order

Merge several pdf files into a single file
merge a.pdf b.pdf and c.pdf and create ./out.pdf


Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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: