// 01 — survival kit
NAVIGATION
Before anything else, you need to know how to move around. Linux is just folders and files — once you know how to see where you are, list what's there, and go where you want, you're already doing it.
WHERE ARE YOU?
In Linux you're always "inside" a folder. When you open a terminal, you start in your home directory. The first thing to know is how to find out where you are right now.
Shows the full path to the folder you're currently in. Run this any time you feel lost.
/home/user and ~ mean the same thing.
LOOKING AROUND
Now that you know where you are, you need to see what's in the current folder.
Lists everything in the current folder. Add -la to see hidden files and details like permissions and sizes.
.bash_logout) are hidden. They only show up with ls -a or ls -la. Most config files are hidden this way.
ls -la right now. You'll probably see some hidden files you didn't know were there.
MOVING AROUND
cd (change directory) is the command you'll use most. You type it, a path, and you're there.
Moves you into a different folder. Learn the shortcuts — they save a lot of typing.
Absolute vs Relative Paths
This trips up a lot of beginners. There are two ways to write a path:
cd / to go to the root of the system, then run ls to see the top-level folders. Then run cd (no argument) to jump back home.
CREATING THINGS
Creates a new folder. Use -p to create nested folders in one command.
Creates a new empty file. If the file already exists, it just updates its timestamp (doesn't overwrite it).
COPY, MOVE & DELETE
Copies a file or folder. Use -r (recursive) when copying a folder — it copies everything inside too.
mv does double duty: it moves files and renames them. Same command, just depends on what you pass as the destination.
Deletes files and folders. Linux has no recycle bin — rm is permanent. Use -r to delete a folder and everything in it.
rm deletes files permanently. There's no trash. Double-check your path before you run it — especially with -r.
QUICK REFERENCE
mkdir practice, go into it with cd practice, create a file with touch hello.txt, then list it with ls. You just did everything in this lesson.