In Linux everything is a file: processes, devices, network interfaces. The directory tree is organized by the fhs (Filesystem Hierarchy Standard). In this lesson you walk through the directory tree, create your own file, and confirm that the system remembered what you did.
Если уже знаком с темой, пропустить введение и сразу к терминалу.
Ключевые идеи урока. Каждая разбирается на отдельном шаге с проверкой.
Не нужно их заучивать заранее, запомнятся по ходу. Беглый взгляд сейчас сделает урок легче.
| команда | что делает |
|---|---|
pwd | absolute path to the current directory |
ls -la <dir> | long listing including hidden files |
cat <file> | print the contents of a file to stdout |
echo 'text' > <file> | create or overwrite a file with a string |
pgrep -x <name> | find a process by exact name |
Короткие справочные статьи. Не главы, не нужно читать перед уроком. Удобно открывать после, чтобы закрепить термин.
готов?
Sandbox запустится автоматически, подожди 5–10 секунд после клика.