01 [Cybersecurity hands-on](https://logicpacks.io/learn/cyber) · Lesson 1 of 10 · lab

# Linux and your own machine

Start a machine that is yours: it keeps your files, tools and notes between sessions. Learn to move around it like a pro.

Roman Urdu: Apni machine start kro jo sirf aap ki ha: files aur tools save rehte hein. Linux mein ghoomna seekho.

## Video transcript

Every security tool runs on Linux. So the first skill is finding your way around it, on a machine that is yours.

Linux keeps everything in one tree of folders. It starts at the root. Your own files live in your home folder. Settings live in etc, logs in var, and scratch files in tmp.

You work in a terminal. You type a short command, and the machine answers in text. Three questions get you started: where am I, what is here, and who am I?

Every file has an owner, and rules for who may read it, change it, or run it. One user, called root, can do anything. Use it only when you must.

A throwaway sandbox forgets everything when it closes. A machine you own remembers. Your notes, wordlists and reports build up as you learn.

So: know the tree, and keep your notes. In the lab, you start your machine, look around, and leave a note that is still there next time.

[Video file (MP4, 1 min 5 s, 2.7 MB)](https://logicpacks.io/learn/media/cyber/linux-and-your-machine/lesson.mp4) · [Captions (WebVTT)](https://logicpacks.io/learn/media/cyber/linux-and-your-machine/lesson.vtt)

Rules: Only test systems you own or have written permission to test. Everything in this track runs against practice targets inside your own machine. Scanning or attacking anyone else’s system without permission is a crime in most countries.

## Goal

Open your cyber machine, find your way around Linux, and leave a note that is still there next time.

## Why it matters

Every security tool runs on Linux. A machine you own, not a throwaway sandbox, means your notes, wordlists and reports build up as you learn.

## Your machine · learn-cyber · lab cyber-01

First time: make your course machine from any terminal (Mac, Linux and Windows 10+ all have ssh). Your ssh key is your login; a new key picks a handle and accepts the terms first.

```sh
ssh -t -p 2200 m.logicpacks.io new cyber --name learn-cyber
```

After that, come back to the same machine any time. Your files are still there:

```sh
ssh -t -p 2200 learn-cyber@m.logicpacks.io
```

To use the terminal in this page, sign this browser in once: run this and open the link it prints.

```sh
ssh -p 2200 m.logicpacks.io web
```

All your machines in the browser: [logicpacks.io/m](https://logicpacks.io/m). A guest key gets one machine: if you already use it for something else, `rm` that one or link a free account (3 machines). How machines work, credits and terms: [logicpacks.io/machines](https://logicpacks.io/machines)

## Step by step

1.  See who and where you are. Inside your machine you can use sudo; it is your sandbox.
    
    ```sh
    whoami && hostname && uname -a
    ```
    
    ```sh
    pwd && ls -la ~
    ```
    
    Diagram: the Linux folder tree. Everything hangs under the root. Your own files live in home, settings in etc, logs in var and scratch files in tmp.
    
    Linux keeps everything in one tree that starts at the root. Your own files live in home.
    
2.  Check memory, disk and the tools that came with the image.
    
    ```sh
    free -h && df -h ~
    ```
    
    ```sh
    nmap --version | head -1 && sqlmap --version && john 2>&1 | head -1
    ```
    
3.  Look at the lab folder: hashes to crack, a report template, and the source of DVWA, one of your practice targets.
    
    ```sh
    ls -la ~/lab && cat ~/lab/README.md
    ```
    
4.  Leave a note for your future self, log out, come back and check it is still there.
    
    ```sh
    echo "lesson 1 done $(date)" >> ~/notes.txt
    ```
    
    ```sh
    cat ~/notes.txt
    ```
    

## Check my work

Run this in your machine. It checks your work and prints PASS, or FAIL with a hint about what is missing.

```sh
lab check cyber-01
```

[Course : All lessons](https://logicpacks.io/learn/cyber) [Next : Networking basics and nmap against the lab](https://logicpacks.io/learn/cyber/networking-and-nmap)

---

Canonical URL: https://logicpacks.io/learn/cyber/linux-and-your-machine

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](https://logicpacks.io/llms.txt). Plain facts: [/about.md](https://logicpacks.io/about.md). Safety: [/safety.md](https://logicpacks.io/safety.md).
