Skip to content

Instantly share code, notes, and snippets.

@marcodotcastro
Last active November 24, 2020 09:44
Show Gist options
  • Save marcodotcastro/9b8c839b4a68bb7b092feca14ffed5ca to your computer and use it in GitHub Desktop.
Save marcodotcastro/9b8c839b4a68bb7b092feca14ffed5ca to your computer and use it in GitHub Desktop.
v21.0: Como usar o terminal?

Básicos Principais

Lista de Comandos para Focar

Comandos

  • pwd / ls / cd
  • mv / cp / rm / touch / mkdir
  • ssh / scp / tail
  • wget /curl
  • more
  • sudo
  • vi / echo
  • git

Boas Práticas

  • Usar comandos já usado, Seta para Cima e Seta para Baixo
  • Digitar 3 letras e tab

ZSH

Como funcionam no bash x zsh?

Mais inteligência para ler texto

echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"

Comparar alguns comandos Bash x Zsh

  • Bash
    • cd
  • Zsh
    • cd: auto_cd, auto_menu, zstyle, /u/lo/b
    • popd: volta para as pastas anteriores
    • correct:
      • ehco "Hello World"
      • setopt correct
      • autoload U colors && colors
      • export SPROMPT="Correct $fg[red]%R$reset_color to $fg[green]%r$reset_color? [Yes, No, Abort, Edit] "

Comparando Bash x Zsh

Documentação

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment