CommandLineFu: Amazing Collection Of Command Line Gems [Linux & Mac]

Ads by Google

linux command lineBrowse an assortment of amazingly useful commands. Whether you’re an veteran system admin or a command-line neophyte striving to discover more, CommandLineFu is a vote-driven collection of commands that serves up thousands of ideas you should have thought of but didn’t.

Some see the command line as Linux’s weak point, the ultimate symbol of a system lacking ease of use. Others know the command line as one of Linux’s best features, giving learned users quick access to features most computer users don’t even know exist. There’s a reason even Mac OS X comes with a full-featured terminal. CommandLineFu is an encyclopedia of exactly those features. A database featuring over 8,000 unique commands, this site can seem overwhelming at first – just like the command line itself. Dig in though, and you will wonder just how you used a computer without the command line.

Sorry, Windows users – the majority of these commands only work on Linux. Some work on Mac OS X as well.

Browsing

Head over to CommandLineFu to get started. You will immediately see the commands submitted most recently.

You can “grep” (read: search) the archive, if you want, or simply click “All Time Greats” to see the most popular commands. Or if you prefer, simply browse the massive tag cloud that makes up this sites right sidebar.

A Few Highlight Commands

Experienced command line users will immediately find things they are interested in, but what about everyone else? Here is a quick list of my discoveries from this site.

Ads by Google

Quick, Temporary Web Server

Want to quickly share a file with someone? Set up your own web server in a few keystrokes with this handy command:

python -m SimpleHTTPServer

Just like that, your current directory will be shared. Here’s what it looks like in a web browser:

linux command line

Naturally, you’re going to need to set up your router properly if you want to share with someone outside your current network. A dedicated IP or a service like DynDNS will also be needed. Still, for local file sharing, it’s hard to beat the above command: it’s quick and easy. It worked for me on Ubuntu and OS X.

Run Preview Command As Sudo

This one’s probably only useful for users of Ubuntu, or other systems utilizing sudo. It allows you to re-run the last command you executed as sudo, perfect if you forgot to add that vital preface.

linux command line tools

See Your Unread Emails

Want a quick rundown of your unread emails? this simple command can do the trick, provided your email client of choice is Gmail.

linux command line tools

It worked for me on Ubuntu and OS X; Linux users should make sure “curl” is installed.

See Your Mounted Devices

A mounted device is any storage drive plugged into your system and working. Need to see a full list of them? Simple.

linux command line tools

Watch A Text Version of StarWars

Okay, this one’s not useful. It is, however, awesome. Watch a text-only version of Star Wars, complete with ASCII animated characters:

linux command line

The code for this is simple:

telnet towel.blinkenlights.nl

3 Different Feeds

Do you want to know every time a new awesome command is discovered? CommandLineFu offers three different Twitter and RSS feeds for just that purpose. Which one you use depends on how frequently you want updates; check them all out here.

Conclusion

This site is awesome. Exploring it can teach you a great deal about not only the command line but also about computers in general.

Did you learn anything cool? Share links to your favorite commands in the comments below, or just list them yourself.

Join live MakeUseOf Groups on Grouvi App Join live Groups on Grouvi
Linux Tips & Issues
Linux Tips & Issues
420 Members
Linux for Beginners
Linux for Beginners
360 Members
Mac OSX Tips & Issues
Mac OSX Tips & Issues
251 Members
Mac Troubleshooting
Mac Troubleshooting
107 Members
Apple Hardware Discussion
Apple Hardware Discussion
86 Members
Affiliate Disclamer

This article may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.
New comment

Please login to avoid entering captcha

Log In