-
Notifications
You must be signed in to change notification settings - Fork 0
Starts terminal cheat sheet for beginners #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
31f6891 to
32c67d7
Compare
32c67d7 to
66545c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vou continuar o review mais tarde ❤️
Mas está 🔝 💯
| @@ -0,0 +1,63 @@ | |||
| +++ | |||
| title = "Comandos do terminal para iniciantes" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acho que vale como guia geral também
| title = "Comandos do terminal para iniciantes" | |
| title = "Comandos do terminal para iniciantes (ou não)" |
| stretch = "cover" | ||
| +++ | ||
|
|
||
| # Comandos Úteis do terminal para iniciantes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acho que vale um texto explicando o que é o terminal
Ou talvez valha a pena a gente criar um post com o vocabulário?
Algo como:
| # Comandos Úteis do terminal para iniciantes | |
| # Comandos Úteis do terminal para iniciantes | |
| O terminal (chamado também de prompt de comando, linha de comando ou shell) é uma aplicação que permite que utilizemos comandos para interagir com o computador por meio de texto ao invés de utilizar uma interface gráfica, sendo um método mais rápido que o gráfico e muito utilizado ainda. |
Usei de referência: https://help.ubuntu.com/kubuntu/desktopguide/pt_BR/terminals.html
| | --------------------------------- | ---------------------------------------------- | | ||
| | cd `NOME DA PASTA` | Navega para a pasta em questão✳️ | | ||
| | cd .. | Volta uma pasta no diretório | | ||
| | ll (são 2 L minusculos) | lista todos os arquivos da pasta | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | ll (são 2 L minusculos) | lista todos os arquivos da pasta | | |
| | ll (são 2 L minúsculos) | lista todos os arquivos da pasta | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Será que funciona no terminal do windows também? 🤔
| | cd `NOME DA PASTA` | Navega para a pasta em questão✳️ | | ||
| | cd .. | Volta uma pasta no diretório | | ||
| | ll (são 2 L minusculos) | lista todos os arquivos da pasta | | ||
| | `tecla tab` | Auto complete ✳️✳️ | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | ll (são 2 L minusculos) | lista todos os arquivos da pasta | | ||
| | `tecla tab` | Auto complete ✳️✳️ | | ||
| | rm `nome_do_arquivo ou pasta` | Remove o arquivo/pasta (se ela tiver vazia) | | ||
| | rm -rf `nome_do_arquivo ou pasta` | remove arquivo/pasta e tudo que tem dentro | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vale um aviso do tipo "cuidado, você pode apagar pastas do sistema"?
| | 💦 mix test | Começa servidor phoenix | | ||
| | 💦 mix format | Vai formatar seu código pra deixar bonito | | ||
| | 🐣 mix phx.server | Roda todos os testes da sua aplicação | | ||
| | 🐣 iex -S mix phx.server | Roda seu phoenix no modo iterativo | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | 🐣 iex -S mix phx.server | Roda seu phoenix no modo iterativo | | |
| | 🐣 iex -S mix phx.server | Roda seu phoenix no modo interativo | |
| | 💦 mix format | Vai formatar seu código pra deixar bonito | | ||
| | 🐣 mix phx.server | Roda todos os testes da sua aplicação | | ||
| | 🐣 iex -S mix phx.server | Roda seu phoenix no modo iterativo | | ||
| | 🐣 mix ecto.create | Cria sua tabela no banco, se você estiver usando ecto | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bom lembrete sobre "se está usando o ecto"
Eu não sei se aparece a sugestão dos comandos do ecto quando o projeto não usa o ecto (tipo, nunca testei rs)
| | 🐣 mix ecto.create | Cria sua tabela no banco, se você estiver usando ecto | | ||
| | 🐣 mix ecto.migrate | Roda as migrations do seu banco | | ||
| | 🐣 mix ecto.drop | Vai apagar todo o seu banco de dados | | ||
| ✳️ Ele vai compilar os arquivos da pasta pra você, e você vai ter acesso a todo o código do seu projeto no elixir iterativo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ✳️ Ele vai compilar os arquivos da pasta pra você, e você vai ter acesso a todo o código do seu projeto no elixir iterativo | |
| ✳️ Ele vai compilar os arquivos da pasta pra você, e você vai ter acesso a todo o código do seu projeto no elixir interativo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Será que vale explicar o que é compilar? 🤔
| | comando | Função | | ||
| | ---------------------- | -------------------------------------- | | ||
| | code . | Abre a pasta que você ta no vscode ✳️ | | ||
| | code `NOME DO ARQUIVO` | Abre o arquivo em questão no vscode ✳️ | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lembrete pra depois: criar um post com as principais extensões pra Elixir + VScode
| | rm -rf `nome_do_arquivo ou pasta` | remove arquivo/pasta e tudo que tem dentro | | ||
| | mkdir `nome_da_pasta` | Cria uma pasta no diretorio que você está | | ||
| | touch `arquivo.extensao_qualquer` | Cria um arquivo em branco no dir que você está | | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talvez adicionar o método de mv e cp 🤔

Queria muito fazer um gif com a navegação basica de pasta, mas meu peek deu problema ):
Se vocês lembrarem de mais comandos, Só gritar :D