Manuals / Linux & CLI for Testers / Chapter 4

A · Basics · intermediate · ~35 min · Chapter 4 of 9

Permissions & processes

chmod/chown basics, ps, top/htop, kill, env vars. Enough to debug “permission denied” and stuck processes.

Path progress
44%

Step 1 of 1

Permission + process lab

Permission + process labDrag 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 →Permission + procedrag · tap →Try thisdrag · tap →Follow the dashed drag · tap →

Example

echo '#!/usr/bin/env bash\necho hi' > ~/cli-lab/scripts/hi.sh
chmod +x ~/cli-lab/scripts/hi.sh
~/cli-lab/scripts/hi.sh
export TEST_ENV=staging
echo $TEST_ENV
ps aux | head

Do this now

Make a script executable. List processes. Export a dummy ENV and print it.

Was this step clear?
Chapter learning outcomes
  • rwx bits
  • Process list
  • Env

Clear these before you leave