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.

Path progress
22%

Step 1 of 1

Lab tree

Lab treeDrag stickies · tap for tips
Study mapDrag stickies · tap for tipsKeep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Assert the UIdrag · tap →Retry wiselydrag · tap →Seed datadrag · tap →Close the loopdrag · tap →Keep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Pathwise hackdrag · tap →Lab treedrag · tap →Try thisdrag · tap →Follow the dashed drag · tap →

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