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.
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
A terminal on your own cyber machine, right in this page. It keeps your files between lessons.
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.
$ ssh -t -p 2200 m.logicpacks.io new cyber --name learn-cyberAfter that, come back to the same machine any time. Your files are still there:
$ ssh -t -p 2200 learn-cyber@m.logicpacks.ioTo use the terminal in this page, sign this browser in once: run this and open the link it prints.
$ ssh -p 2200 m.logicpacks.io webAll your machines in the browser: 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
Step by step
See who and where you are. Inside your machine you can use sudo; it is your sandbox.
$ whoami && hostname && uname -a$ pwd && ls -la ~Linux keeps everything in one tree that starts at the root. Your own files live in home. Check memory, disk and the tools that came with the image.
$ free -h && df -h ~$ nmap --version | head -1 && sqlmap --version && john 2>&1 | head -1Look at the lab folder: hashes to crack, a report template, and the source of DVWA, one of your practice targets.
$ ls -la ~/lab && cat ~/lab/README.mdLeave a note for your future self, log out, come back and check it is still there.
$ echo "lesson 1 done $(date)" >> ~/notes.txt$ 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.
$ lab check cyber-01