O'Reilly logo

Ten Steps to Linux Survival by James Lehmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Cheat Sheet

That rug really tied the room together, did it not?

Walter Sobchak, The Big Lebowski

This chapter lists many of the commands covered in this report. Use man or other methods outlined in the report to find more information on them.

Redirection Command

See I/O Redirection

|

Pipe stdout from one process into stdin in another process.

System Directory Commands

See Important System Directories

/etc

Configuration files location

/home

Home or user profile directories

/proc

System runtime information

/root

Home directory for root user (system admin)

/tmp

Temporary files location

/var/log

Log files location

Standard User Commands

These are “Section 1” commands, normal user commands that typically don’t require any special privileges beyond permissions to access files and the like.

apropos

Search for help on commands by title

bash

The Bourne-again shell

cat

Concatenate the input files to stdout

cd

Change the current directory

cp

Copy files or directories

df

Show space utilization by filesystem

dig

Look up DNS info on an address

du

Estimate disk usage

find

Find files based on various conditions and execute actions against the results

grep

Search for a pattern (regular expression) in files

less

Display the file one page at a time on stdout

locate

Locate files by name

ls

List directory contents

man

Display manual pages; remember, q quits

ps

List running processes

pwd

Print the current (working) directory name ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required