Software, settings, next steps · Software, configurações, próximos passos
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.
Instalando software
- No Linux, raramente baixamos instaladores. Um gerenciador de pacotes busca e instala software por você.
- Debian e Ubuntu usam
apt; Fedora usadnf; usuários de macOS frequentemente adicionambrew:
sudo apt update
sudo apt install git
- Um comando, e a ferramenta (e tudo o que ela precisa) está instalada e pronta.
Installing with a package manager · Instalando com um gerenciador de pacotes
apt update refreshes the catalogue, apt install fetches the tool and its needs. · apt update atualiza o catálogo, apt install baixa a ferramenta e suas dependências.
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.
O ambiente
- A shell guarda configurações em variáveis de ambiente. A mais importante é
PATH— a lista de pastas que ela pesquisa por comandos. - Suas configurações pessoais vivem em um arquivo chamado
.bashrcna sua pasta home. Editá-lo permite criar atalhos (aliases) e mudar como a shell se comporta.
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!
Para onde ir a seguir
- Agora você sabe navegar, ler, pesquisar, combinar e gerenciar arquivos — o cerne da linha de comando.
- Mantenha um terminal real aberto e use-o para pequenas tarefas; a velocidade vem com o hábito.
- Próximos passos: aprender
gitpara controle de versão, um editor de texto comonanoouvim, e um pouco de scripting de shell para automatizar seus comandos favoritos. Parabéns!
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.
Agora você tenta
aptprecisa da internet real, então não está no nosso simulador — mas uma lista de pacotes instalados está salva eminstalled.txt.- Use as ferramentas deste curso para
sorta lista ewccontá-la. Os mesmos poucos comandos funcionam em qualquer dado de texto.
Common mistakes
- Read a command's
--helpormanpage before using unfamiliar options. - Test a risky command on a copy of your files first.
Erros comuns
- Leia a página de
--helpoumande um comando antes de usar opções desconhecidas. - Teste um comando arriscado primeiro em uma cópia dos seus arquivos.
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 é um comando real, não parte do nosso simulador — mas aqui sua saída está salva em installed.txt. Coloque os nomes dos pacotes em ordem alfabética com 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. · Quantos pacotes estão instalados? Conte as linhas com cat installed.txt | wc -l — as mesmas ferramentas de arquivo funcionam em qualquer dado.