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

Browse 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.

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.

0 comments:

Introduction