Skip to content

Instantly share code, notes, and snippets.

@lbrealdev
Last active July 17, 2019 10:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbrealdev/fd33ba118490341386c336aa112c0732 to your computer and use it in GitHub Desktop.
Save lbrealdev/fd33ba118490341386c336aa112c0732 to your computer and use it in GitHub Desktop.
Comandos úteis para o dia a dia Windows CMD.
Comandos Windows CMD
Autor: lbreal dev
# Comando para Windows [cmd] semelhante ao cat Linux/Unix
type test.txt
# Criar arquivo Windows [cmd] semelhante ao vi / touch /nano Linux/Unix
fsutil file createnew testfile.txt 1000
# 2º maneira de criar arquivos
copy nul test01.py
# Power shell | about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170
set-executionpolicy remotesigned
# Adicionar variável de ambiente (PATH) pelo cmd | PATH para VBoxManage = Virtualbox
Set PATH=%PATH%;C:\Program Files\Oracle\VirtualBox
# Ativar Hyper-V via Power Shell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
# Criar "GodMode Windows" - Painel de Controle no desktop ou em qualquer outro lugar
- mkdir GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} # CMD
- GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} # Modo tradicional crie uma pasta com esse nome, aperte enter
# Proxy windows
netsh winhttp show proxy
# Criar um link windows
mklink c:\python37\python.exe c:\python37\python3.exe
# Abrir Recycle.bin via cmd
C:\$Recycle.bin\
# Abrir Desktop
shell:desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment