Manuals / Linux & CLI for Testers / Chapter 2
A · Basics · beginner · Week 1 · Chapter 2 of 9
Navigation & files
pwd, ls, cd, mkdir, cp, mv, rm (carefully), find. Paths absolute vs relative.
Lab tree
Lab treeDrag stickies · tap for tips
Example
mkdir -p ~/cli-lab/{logs,data,scripts}
echo "hello" > ~/cli-lab/data/sample.txt
cp ~/cli-lab/data/sample.txt ~/cli-lab/data/sample.bak
ls -la ~/cli-lab/**
Do this now
In ~/cli-lab build a small tree, copy, rename, and list recursively.
Pro tip: `rm -rf` is a loaded weapon. Prefer trash tools while learning.
Was this step clear?
Chapter learning outcomes
- Paths
- Listing
- Safe delete habits
Clear these before you leave