# An Illustrated Shell Command Primer

## Introduction

_This guide assumes you have access to the shell on a Linux computer. All the examples use a Raspberry Pi running Raspbian. If you haven't, you should&nbsp;start with&nbsp;[What is this "Linux", anyhow?](../../../what-is-linux)&nbsp;and&nbsp;[What is the Command Line?](../../../../what-is-the-command-line/overview)_

## Choosing Your Own Adventure
This is [Adventure](http://rickadams.org/adventure/), a game almost as old as Unix itself, and much older than Linux:

![](https://cdn-learn.adafruit.com/assets/assets/000/022/076/medium800thumb/raspberry_pi_screencast-2015-01-02-18_11_41.jpg?1448314540)

Like the shell, _Adventure_'s interface is made entirely of text.

You interact with the world of the game by typing commands and reading responses. ENTER BUILDING or [GET LAMP](http://www.getlamp.com/), for example.

## Exploring the Machine
The shell is a lot like that game world, except that instead of a map full of rooms and objects, you navigate a computer's **filesystem** and work with the files it contains.

The filesystem, everything the operating system needs to boot up, run software, save files, take photos, etc. is organized into **directories**. We usually call these "folders" in the Windows and Macintosh worlds, but the concept is the same. A directory is just a special kind of file that can contain other files, including directories.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/077/medium800/raspberry_pi_you_are_here.png?1420311839)

As a user, you have a **home directory**. In the shell, ~ (the [tilde](https://en.wikipedia.org/wiki/Tilde)) is a common shorthand for this. In this case, it points at /home/pi.

Log in to your Pi, acquire a terminal, and verify this:

![](https://cdn-learn.adafruit.com/assets/assets/000/022/078/medium800thumb/raspberry_pi_screencast-2015-01-03-11_00_47.jpg?1448031207)

`pwd` stands for **p** rint **w** orking **d** irectory. Commands in the Unix tradition tend to have short, cryptic names. Some can be easily remembered because they stand for something obvious. Others just have to be committed to memory.

If you have a look around your Pi, you'll find that it contains all sorts of stuff. You just need to know a few more commands. The following pages provide quick introductions to some of the basics.

- [Next Page](https://learn.adafruit.com/an-illustrated-shell-command-primer/ls.md)

## Featured Products

### Raspberry Pi 1 Model B+ Starter Pack - Includes a Raspberry Pi 1

[Raspberry Pi 1 Model B+ Starter Pack - Includes a Raspberry Pi 1](https://www.adafruit.com/product/2125)
You're going to work hard with your Raspberry Pi B+. &nbsp;You're going to have to solder, code, and Linux your Maker heart out. &nbsp;That's why we've tried to make it as easy as possible to start -&nbsp;by combining the Raspberry Pi B+ with what we think are the best...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2125)
[Related Guides to the Product](https://learn.adafruit.com/products/2125/guides)

## Related Guides

- [Fruit Jam OS](https://learn.adafruit.com/fruit-jam-os.md)
- [Adafruit PiCowbell Proto for Pico](https://learn.adafruit.com/picowbell-proto.md)
- [Adding a Single Board Computer to PlatformDetect for Blinka](https://learn.adafruit.com/adding-a-single-board-computer-to-platformdetect-for-blinka.md)
- [RGB Matrix Panels With Raspberry Pi 5](https://learn.adafruit.com/rgb-matrix-panels-with-raspberry-pi-5.md)
- [Raspberry Pi HQ Camera Case](https://learn.adafruit.com/raspberry-pi-hq-camera-case.md)
- [3D Printed Google AIY Voice Kit](https://learn.adafruit.com/3d-printed-google-aiy-voice-kit.md)
- [World's Smallest MAME Arcade Cabinet](https://learn.adafruit.com/worlds-smallest-mame-arcade-cabinet.md)
- [CircuitPython Libraries on MicroPython using the Raspberry Pi Pico](https://learn.adafruit.com/circuitpython-libraries-on-micropython-using-the-raspberry-pi-pico.md)
- [reef-pi Guide 7: Dosing Controller](https://learn.adafruit.com/reef-pi-guide-5-dosing-controller.md)
- [reef-pi Guide 1: Setup and Demonstration](https://learn.adafruit.com/reef-pi-installation-and-configuration.md)
- [CircuitPython Libraries on Linux and Orange Pi](https://learn.adafruit.com/circuitpython-on-orangepi-linux.md)
- [An Introduction to RP2040 PIO with CircuitPython](https://learn.adafruit.com/intro-to-rp2040-pio-with-circuitpython.md)
- [Install bluez on the Raspberry Pi](https://learn.adafruit.com/install-bluez-on-the-raspberry-pi.md)
- [CYBERDECK Bonnet and HAT for Raspberry Pi 400](https://learn.adafruit.com/cyberdeck-bonnet-and-hat.md)
- [Raspberry Pi Kernel-o-Matic](https://learn.adafruit.com/raspberry-pi-kernel-o-matic.md)
