Knowledge Hub / Operating systems

Linux shell

How do I inspect and change system state through commands?

Shell vocabulary, paths, standard command patterns and safe observation in Linux.

Last verified
2026-09-20
Review interval
180 days
Status
In review

01 / Overview

How do I inspect and change system state through commands?

A shell reads commands, expands their syntax and starts programs or built-in operations. Learning the current directory, paths, arguments and observable output creates the foundation for later administration and security work.

03 / Concepts

Concepts

Current directoryshell-current-directory
The directory used as the starting point for relative paths.
Pathshell-path
A location expressed as a sequence of filesystem names.
Output and resultshell-output
Displayed text is one observation; exit status and changed state are separate evidence.

04 / Commands

Commands

EnvironmentCommandPurposeLab
linuxpwdPrint the current directory.Available in Command Lab
linuxlsList directory entries.Available in Command Lab
linuxcd notesChange the current directory.Available in Command Lab
linuxcat notes/dns.txtRead the simulated text file in Command Lab.Available in Command Lab

05 / Labs

Labs

07 / Security

Security

  1. Read the command, options, arguments, working directory and expected effect before execution; copied commands are untrusted input.

08 / Troubleshooting

Troubleshooting

  1. When a path fails, inspect the current directory and distinguish relative from absolute paths before changing permissions.

09 / Quick checks

Quick checks

  1. Which command tells you the starting point for a relative path?

10 / GRAPH

Related concepts

Used in certifications

These links reuse canonical knowledge; the certification page does not own or duplicate the topic.

12 / Sources and freshness

Sources and freshness

Last verified
2026-09-20
Review interval
180 days
Source version
GNU Bash manual · GNU Coreutils manual · Command Lab grammar v1