Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'd like to start a collection of good, free cheat sheet resources for system administrators. Please add your favorite ones. From the Wikipedia "cheat sheet" article:

In more general usage, a "cheat sheet" is any short (one or two page) reference to terms, commands, or symbols where the user is expected to understand the use of such terms etc but not necessarily to have memorized all of them.

share

locked by Chris S Jan 27 '12 at 4:17

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

44 Answers 44

Real World FIND usage:

The original page is gone (also linked from Linux Today), but I found it again on web.archive.org. http://web.archive.org/web/20090426000044/http://www.wagoneers.com/UNIX/FIND/find-usage.html

Whenever I had a question about unix find syntax or needed an example, I'd reference this.

find / -type f -name *.jpg  -exec cp {} . \;
find . -type f -size +10000 -exec ls -al {} \;
find . -atime +1 -type f -exec mv {} TMP \; # mv files older then 1 day to dir TMP
find . -name "-F" -exec rm {} \;   # a script error created a file called -F 
find . -exec grep -i "vds admin" {} \;
find . \! -name "*.Z" -exec compress -f {} \;
find . -type f \! -name "*.Z" \! -name ".comment" -print | tee -a /tmp/list
find . -name *.ini
find . -exec chmod 775 {} \;
find . -user xuser1 -exec chown -R user2 {} \;
find . -name ebtcom*
find . -name mkbook
find . -exec grep PW0 {} \;
find . -exec grep -i "pw0" {} \;
find . -atime +6
find . -atime +6 -exec ll | more
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . -name auth*
find . -exec grep -i plotme10 {};
find . -exec grep -i plotme10 {} \;
find . -ls -exec grep 'PLOT_FORMAT 22' {} \;
find . -print -exec grep 'PLOT_FORMAT 22' {} \;
find . -print -exec grep 'PLOT_FORMAT' {} \;
find . -print -exec grep 'PLOT_FORMAT' {} \;
find ./machbook -exec chown 184 {} \;
find . \! -name '*.Z' -exec compress {} \;
find . \! -name "*.Z" -exec compress -f {} \;
find /raid/03c/ecn -xdev -type f -print
find /raid/03c/ecn -xdev -path -type f -print
find / -name .ssh* -print | tee -a ssh-stuff
find . -name "*font*"
find . -name hpmcad*
find . -name *fnt*
find . -name hp_mcad* -print
find . -grep Pld {} \;
find . -exec grep Pld {} \;
find . -exec grep Pld {} \;
find . -exec grep PENWIDTH {} \; | more
find . -name config.pro
find . -name config.pro
find /raid -type d ".local_sd_customize" -print
find /raid -type d -name ".local_sd_customize" -print
find /raid -type d -name ".local_sd_customize" -ok cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
find /raid -type d -name ".local_sd_customize" -exec cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
find . -name xeroxrelease
find . -exec grep xeroxrelease {} \;
find . -name xeroxrelease
find . -name xeroxrelease* -print 2>/dev/null
find . -name "*release*" 2>/dev/null
find / -name "*xerox*" 2>/dev/null
find . -exec grep -i xeroxrelease {} \;
find . -print -exec grep -i xeroxrelease {} \;
find . -print -exec grep -i xeroxrelease {} \; > xeroxrel.lis
find . -exec grep -i xeroxrel {} \;
find . -print -exec grep -i xeroxrel {} \;
find . -print -exec grep -i xeroxrel {} \; | more
find /raid/03c/inwork -xdev -type f -print >> /raid/04d/user_scripts/prt_list.tmp
find . -exec grep '31.53' {} \;
find . -ls -exec grep "31/.53" {} \; > this.lis
find . -print -exec grep "31/.53" {} \; > this.lis
find . -print -exec grep 31.53 {} \; > this.lis
find . -exec grep -i pen {} /;
find . -exec grep -i pen {} \;
find . -print -exec grep -i pen {} \; | more
find . -exec grep -i pen {} \;
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . \! -name '*.Z' -exec compress -f {} \;
find . -name 'cache*' -depth -exec rm {} \;
find . -name 'cache*' -depth -print | tee -a /tmp/cachefiles
find . -name 'cache[0-9][0-9]*' -depth -print | tee -a /tmp/cachefiles
find . -name 'hp_catfile' 'hp_catlock' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_catfile' -name 'hp_catlock' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_cat*' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_cat[fl]*' -depth -print | tee -a /tmp/hp.cats
find /raid -name 'hp_cat[fl]*' -depth -print
find . \! -name '*.Z' -exec compress -f {} \;
find . -name '*' -exec compress -f {} \;
find . -xdev -name "wshp1*" -print
find . -xdev -name "wagoneer*" -print
find . -name "xcmd" -depth -print
find /usr/contrib/src -name "xcmd" -depth -print
find /raid -type d -name ".local_sd_customize" -exec ls {} \; 
find /raid -type d -name ".local_sd_customize" \
   -exec cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
share

Not free, but definitely worth mentioning.
xkcd have a wearable Linux cheat sheet.

xkcd Linux cheat shirt

share

http://www.connectionstrings.com

I use it all the time for system administrator and developer related tasks, especially when trying to make an applications talk to a database other than what it was originally designed for and the support isn't all that great.

share

As an admin (and after) I find that I need to often create tools for the browser.

I'm not a designer (nor do I desire to be one), but I have found VisiBone cheat sheets immensely helpful:

share

Windows 2003 Command Line Reference is more of a 50 lb manual than a cheat sheet, though if someone has something lightweight with the compressed syntax, that would rock...

share

And a list with cheat sheets for different languages, systems and so on.

http://www.cheat-sheets.org/

share

DevCheatSheet.com - Huge collection of cheat sheets and reference cards for developers (and admins)

share

Unix Toolbox

This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.

share

I keep the Vi Reference Mug on my desk just in case I forget something.

Also, I saw a cheat sheet here for Subversion but not one for Git. Try this one.

share
1  
Mentioned link is dead. Check here for more Git cheat sheets: zrusin.blogspot.com/2007/09/git-cheat-sheet.html –  Henk May 3 '11 at 20:20

Simple RAID Cheat Sheet

I'm sure it's just because I don't mess with RAID that often, but when I do need it, this is immensely helpful.

share

Linux Command wallpaper

alt text

share

Blog Post: PowerShell Cheat Sheet Redux - the PDF version

Two page cheat sheet for some common group of tasks

share

WordPress Template/Theme Editing

Many sheets on many topics including HTML, JavaScript, JSP, CSS, Delphi, Ada, C, C#, C++, etc. ad nauseam (a listing of sheets from many sources)

Also and perhaps most important for admins even if it's not really a single-page format: Rosetta Stone for Unix which lists equivalent commands for AIX, A/UX, DG/UX, FreeBSD, HP-UX, IRIX, Linux, Mac OS X, NCR Unix, NetBSD, OpenBSD, Reliant, SCO OpenServer, Solaris, SunOS 4, Tru64, Ultrix and UNICOS

That last one was very useful when dealing with disks - I was looking for something like parted, not for "divvy" which is what SCO OpenServer uses.

share

Rewrite Rules Cheat Sheet

PECL Regex Cheat Sheet: PECL Cheat Sheet

share

I add my own favorite: Cheat Sheets on PacketLife.com has some very nice ones on network technology topics.

Cheat sheets are in PDF format. You are welcome to use and redistribute them as you please, so long as they remain intact and unmodified.

Currently there are six categories:

  • Protocols: BGP, EIGRP, First Hop Redundancy, IEEE 802.11 Wireless, IEEE 802.1X, IPsec, IPv4 Multicast, IPv6, IS-IS, OSPF, Spanning Tree
  • Applications: tcpdump, Wireshark Display Filters
  • Reference: Common Ports, IP Access Lists, Subnetting
  • Syntax: Markdown, MediaWiki
  • Technologies: MPLS, Quality of Service, VLANs
  • Miscellaneous: Cisco IOS Versions, Physical Terminations

Examples: Common Ports and IPv6 (links to PDF files)

Common Ports Cheat Sheet (PDF)

share
6  
Oh, so THAT site is why wget has a --mirror function... Thanks! –  Matt Simmons Jun 25 '09 at 19:25
2  
You know you have all that info in /etc/services, right Ok no color but still, it's handy –  niXar Jun 26 '09 at 7:39

Google.com (I know - it's not a list with two-word commands, but it saves my behind every time).

share
2  
had to give it a +1 –  cop1152 Jun 25 '09 at 12:55

There is a ton of good ones on www.drp.co.za

share

Set Operations for Unix. some of the most useful stuff I've seen to date. Not only it speeds things up greatly, but it educates you how to do things in a smarter way than the CS101 'solve it for one case, put it in a loop' strategies.

Website with explanations

Shorter version, for hanging on the cubewall: DOWNLOAD

share

Apache 1.3 Quick Reference Card

Apache Cheat Sheet thumbnail

Link: PDF file (2 pages)

share

Oracle Server 9i Quick Reference Guide

Link: PDF file (0.9 MB)*

* It's not really a cheat sheet, there are 37 pages, but it is very compressed information.

share

Found this whimpy list of links to various sheets for various technologies...there's only, oh, I dunno, three dozen of these...

share

Not the answer you're looking for? Browse other questions tagged or ask your own question.