Software, settings, next steps
此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
English
Installing software
- On Linux you rarely download installers. A package manager fetches and installs software for you.
- Debian and Ubuntu use
apt; Fedora usesdnf; macOS users often addbrew:
sudo apt update
sudo apt install git
- One command, and the tool (and anything it needs) is installed and ready.

探索
Installing with a package manager
apt update refreshes the catalogue, apt install fetches the tool and its needs.
English
The environment
- The shell remembers settings in environment variables. The most important is
PATH— the list of folders it searches for commands. - For an interactive, non-login Bash shell, personal startup commands normally live in
~/.bashrc. Login shells and other shells use different startup files. Aliases and startup-file editing are outside this simulator.
English
Where to go next
- You now know how to navigate, read, search, combine, and manage files — the core of the command line.
- Keep a real terminal open and use it for small tasks; speed comes with habit.
- Next steps: learn
gitfor version control, a text editor likenanoorvim, and a little shell scripting to automate your favourite commands. Well done!
English
Now you try
aptneeds the real internet, so it is not in our simulator — but a list of installed packages is saved ininstalled.txt.- Use the tools from this course to
sortthe list andwcto count it. The same handful of commands work on any text data.
English
Common mistakes
- Read a command's
--helpormanpage before using unfamiliar options. - Test a risky command on a copy of your files first.
难度 3/5 · 今日首次完成可获 200 金币及少量额外奖励
apt list --installed is a real command, not part of our simulator. Here installed.txt contains a simplified list of package names. Put them in alphabetical order with sort installed.txt.
难度 3/5 · 今日首次完成可获 200 金币及少量额外奖励
How many packages are installed? Count the lines with cat installed.txt | wc -l — the same file tools work on any data.
难度 3/5 · 今日首次完成可获 200 金币及少量额外奖励
Is a Python package installed? Search installed.txt for the text py with grep.