Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.
Hide

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:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

All commands from sorted by
Terminal - All commands - 12,430 results
type C:\WINNT\system32\inetsrv\MetaBase.xml | find "DEBUG"
shutdown now -r
alias ..='cd ..'
this command is to see oracle instance process on linux server
yum install zsh
2012-04-02 12:53:30
User: netaxiz
Functions: install
-23

Use ZSH instead of bash, typing .. will move you up one directory, without the need to alias it.

type C:\WINNT\system32\inetsrv\MetaBase.xml | find "400" | find "CustomError"
type "C:\Program Files\Common Files\Symantec Shared\VirusDefs\definfo.dat"
echo "" > filr.txt
touch /path/to/file.txt
touch file
cd
cd
l
ls -l ~
ls -l $HOME
Convert Windows/DOS Text Files to Uni
touch balls
ls -la
w3m
perl -e 'print "Hello World!", "\n";'
yum install httpd
2009-02-19 16:59:51
User: sandrader
Functions: install
-30

This command install Apache 2 and other utilities on CentOS

du -sh
test.bat parm1 parm2 parm3
2009-03-25 12:27:18
User: lansa
Functions: test
-34

I am using .bat commands to execute Curl commands for Twitter API

cd \
2009-02-14 21:53:51
User: VonC
Functions: cd
-34

Useful to quickly get back to the Windows root directory of the current drive from a sub-directory within that drive.

Works also without space between 'cd' and backslash: 'cd\' or 'cd \' have the same effect

/scripts/rickrollyes
2009-03-25 21:24:12
User: sliggins
-37

Mass suspends all User accounts on a Cpanel server and inputs a RedirectMatch to the Rick Roll video. Learn more at rainbowblast com