Linux CLI
Operate a Linux system from the shell: navigate and change files safely, combine tools to inspect logs, and manage processes and remote sessions.
4 objectives 6 steps about 125 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Navigate the filesystem hierarchy and create, copy, move, find and delete files using absolute and relative paths.
- Read and change file ownership and permission bits, and explain why a given user can or cannot access a file.
- Combine commands with pipes and redirection (grep, sort, uniq, cut, awk) to answer a specific question from a log file.
- Inspect and control processes and environment variables, and work on remote hosts over SSH with key-based authentication.
Lesson plan
6 steps, about 125 min · 5 of 5 lessons available so far
- Finding your way around the filesystem: globs, nano, vim and sudoedit Concept · 20 min
- Who may read this file? Users, groups and mode bits Worked example · 20 min
- Answering questions from an access log with pipelines Lab · 25 min
- Processes, resource usage, signals and the environment a program sees Concept · 20 min
- Remote work over SSH: keys, tar archives, scp and rsync Lab · 25 min
- Check: diagnose a misbehaving host from the shell Knowledge check · 8 questions
Practise it
On a fresh Linux VM, set up key-based SSH access, find the five client IPs with the most 5xx responses in a provided web server log using one pipeline, fix the permission error that stops a service user from reading its config file and correct a setting in it with sudoedit and vim or nano, spot a runaway process with top and stop it with the appropriate signal, then pack the rotated logs (selected with a glob) into a compressed tar archive and pull it back to your machine with scp or rsync.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own ShellIntermediate · 8–16 h
- Build your own Command-Line ToolIntro · 3–8 h
References
Hard prerequisites
None.
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.