-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8079fc8
commit be3df9c
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
tree -if diretório/ # lista os arquivso dessa maneira diretório/pasta/arquivo-teste.txt | ||
history -d 23-33 # deleta o histórico de comando do 4 ao 6 depois disso precisa executar history -w para salvar | ||
history -w # salva o histórico de comandos alterados | ||
sed -i '12,22d' ~/.bash_history | ||
git log --pretty=format:"- %s" --reverse | grep change # retorna uma lista de commits do mais antigo para o mais novo | ||
sudo apt update; sudo apt upgrade # procura e aplica novas atualizações | ||
w3m https://whatismyipaddress.com/ # meuip | ||
w3m https://meuip.com.br/ # meuip2 | ||
w3m https://meuip.com.br/tools-geo # geoip localização do ip | ||
history | head -n 10 # mostra os 10 primeiros históricos de comandos | ||
history # mostra todo o histórico de comandos | ||
history -d 12 # deleta o histórico de comando 12 depois disso precisa executar history -w para salvar | ||
git checkout -b nome-da-branch # cria uma branch | ||
. venv/bin/activate # ativa a venv | ||
python -m pip install --upgrade pip setuptools # atualiza o pip | ||
pip install -r requirements.txt # instala as bibliotecas que estão no arquivo requirements.txt | ||
sed -i -e '2d' # deleta a linha 2 e já salva o arquivo | ||
sed -i -e '2,5d' # deleta a linha 2 até a linha 5 e já salva o arquivo | ||
fc -l 1 3 # mostra os históricos de comandos do comando 1 ao 3 | ||
. .venv/bin/activate | ||
. venv/bin/activate | ||
echo 'Fim dos comandos importantes' |