Skip to content

Instantly share code, notes, and snippets.

@omps
Last active January 22, 2022 13:53
Show Gist options
  • Save omps/241d72c4c0c26974b970847f83653232 to your computer and use it in GitHub Desktop.
Save omps/241d72c4c0c26974b970847f83653232 to your computer and use it in GitHub Desktop.
A Gist of Windows Commands for Linux Admins

Windows Docker Kubernetes Commands for Linux Admins

1.a. Find windows system path on windows terminal Run path command on any cmd prompt and this should print the path output, tested on windows 10

D:\> path

1.b. Find and temporarily modify windows system path on powershell windows 10

PS D:\> $env:Path
PS D:\> $env:Path = 'c:\foo;' + $env:Path     # attach to the beginning
PS D:\> $env:Path += $env:Path + ';c:\foo'    # attach to the end
  1. Powershell Command to download minikube
New-Item -Path 'c:\' -Name 'minikube' -ItemType Directory -Force
Invoke-WebRequest -OutFile 'c:\minikube\minikube.exe' -Uri 'https://github.com/kubernetes/minikube/releases/latest/download/minikube-windows-amd64.exe' -UseBasicParsing



3. Powershell set terminal to enable CTRL+W to delete backward characters

Set-PSReadLineOption -EditMode Emacs


4. Set execution policies

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser Get-ExecutionPolicy -List


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