Software, settings, next steps · ソフトウェア、設定、次のステップ
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:
- One command, and the tool (and anything it needs) is installed and ready.
ソフトウェアのインストール
- Linuxではインストーラーをダウンロードすることはまずありません。パッケージマネージャー がソフトウェアを取得してインストールしてくれます。
- DebianとUbuntuは
aptを使用し、Fedoraはdnfを使用し、macOSユーザーは oftenbrewを追加します:
sudo apt update
sudo apt install git
- コマンド1つで、ツール(および必要なもの全て)がインストールされ準備完了です。
Installing with a package manager · パッケージマネージャーでのインストール
apt update refreshes the catalogue, apt install fetches the tool and its needs. · apt update がカタログを更新し、apt install がツールとその依存関係をダウンロードします。
The environment
- The shell remembers settings in environment variables. The most important is
PATH— the list of folders it searches for commands. - Your personal settings live in a file called
.bashrcin your home folder. Editing it lets you create shortcuts (aliases) and change how the shell behaves.
エンvironment
- シェルは 環境変数 に設定を記憶しています。最も重要なものは
PATH— コマンドを探すフォルダのリストです。 - 個人の設定はホームフォルダにある
.bashrcというファイルに含まれています。これを編集するとショートカット(aliases)を作成したり、シェルの挙動を変更したりできます。
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!
次への道
- これでナビゲーション、読み込み、検索、結合、ファイル管理の方法がわかりました — これらがコマンドラインのコアです。
- 実際のターミナルを開き、小さなタスクに使用してください。慣れれば速度も上がります。
- 次のステップ:
gitを用いたバージョン管理、nanoやvimといったテキストエディタ、そして好きなコマンドを自動化するための少しの shell scripting を学びましょう。よくできました!
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.
あなたも試してみよう
aptは本物のインターネットが必要です therefore、当シミュレーターには含まれていませんが、インストールされたパッケージのリストがinstalled.txtに保存されています。- このコースのツールを使って
sortでリストを取り出し、wcで数を数えてください。同じ handful のコマンドはあらゆるテキストデータに適用できます。
Common mistakes
- Read a command's
--helpormanpage before using unfamiliar options. - Test a risky command on a copy of your files first.
よくあるミス
- unfamiliar オプションを使用する前に、コマンドの
--helpまたはmanページを読んでください。 - リスクのあるコマンドは、ファイルのコピー上で最初にテストしてください。
apt list --installed is a real command, not part of our simulator — but here its output is saved in installed.txt. Put the package names in alphabetical order with sort installed.txt. · apt list --installed は本物のコマンドであり、私たちのシミュレータの一部ではありません — しかしここではその出力が installed.txt に保存されています。sort installed.txt を使用してパッケージ名をアルファベット順に並べ替えてください。
How many packages are installed? Count the lines with cat installed.txt | wc -l — the same file tools work on any data. · いくつのパッケージがインストールされていますか?cat installed.txt | wc -l が含まれる行を数えてください — 同じファイル操作ツールは任意のデータに適用できます。