All commands (14,187)

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

Find all clients connected to HTTP or HTTPS ports
It finds, specifically, the connections to the HTTP and HTTPS ports as source ports. You can check for destination ports as well.

remove all spaces from all files in current folder

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

mysqlcheck --defaults-file=/etc/mysql/debian.cnf --auto-repair --all-databases

Watch TCP, UDP open ports in real time with socket summary.

Comment out a line in a file
This will comment out a line, specified by line number, in a given file.

View details of network activity, malicious or otherwise within a port range.
View details of both TCP and UDP network activity within a specified port range.

remove oprhan package on debian based system

currently mounted filesystems in nice layout
Particularly useful if you're mounting different drives, using the following command will allow you to see all the filesystems currently mounted on your computer and their respective specs with the added benefit of nice formatting.

Enable color pattern match highlighting in grep(1)
This will affect all invocations of grep, even when it is called from inside a script.


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: