# Linux Basics

### Software

Here's some software you can use to manage the PiCar, and any linux server or device.

- Putty - Putty is a program for remotely connecting to the terminal interface of any linux server. This is called **SSH.** Putty is pretty simple, all it requires is the IP address or hostname of the device, and you'll be ready to connect!

 **Demo Screenshots:**

[ ![image.png](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/scaled-1680-/image.png)](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/image.png)[![image.png](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/scaled-1680-/BPmimage.png)](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/BPmimage.png)

- Raspberry Pi Imager - This allows you to install software on Raspberry Pis easily. All you do is select the SD card, operating system, and change a couple settings.

 **Demo Screenshots**

[![image.png](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/scaled-1680-/DAnimage.png)](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/DAnimage.png)[![image.png](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/scaled-1680-/sniimage.png)](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/sniimage.png)[![image.png](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/scaled-1680-/3OSimage.png)](https://wiki.pwbstem.club/uploads/images/gallery/2024-02/3OSimage.png)

### Commands

These PiCars primarily run Linux. The specific distribution of Linux being [Raspbian](https://www.raspberrypi.com/software/), which is based on [Debian](https://www.debian.org/).

These are some basic Linux commands that will help you get through setup. These are very basic, and I can't even touch on the thousands of possible commands and their combinations. This will just allow you to get through setup, and start driving.

#### Navigation

**To list all files in a folder, execute:**

```bash
ls
```

**To enter a folder, execute:**

```bash
cd (folder)
```

**To leave a folder, execute:**

```bash
cd ..
```

**To go to your home directory, execute:**

```bash
cd ~
```

#### File Editing  


**To edit or create a text file, execute:**

```bash
nano <filename>
```

##### Permissions

**If you ever do not have sufficient access or permissions to a file, type:**

```bash
sudo <your command>
```

##### Power Controls

**To turn on the pi after a shutdown, plug it in.**

**To turn off the pi, execute:**

```bash
sudo shutdown now
```

**To reboot the pi, execute:**

```bash
sudo reboot now
```

<p class="callout success">If you have any other questions, google and stack overflow are your friends. Don't be afraid to look things up... I needed to a lot. :)</p>

<p class="callout info">If you want to contact me (Liev) you can E-Mail <liev@dorfman.net></p>