Skip to content

Instantly share code, notes, and snippets.

@theWhiteFox
Last active August 8, 2018 08:50
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 theWhiteFox/abf895bea7dfcde79239 to your computer and use it in GitHub Desktop.
Save theWhiteFox/abf895bea7dfcde79239 to your computer and use it in GitHub Desktop.
PowerShell Commands
dir = list items in folder
dir -r = List Files in Folders and Subfolders
Tab key = tab completion of word /directory /file
Aliases
ii . = Invoke-Item - open this directory
cls = Clear
ni = New-Item c:\scripts\Windows PowerShell -type directory
ni = New-Item c:\scripts\new_file.txt -type file
saps chrome google.com = Start-Process "chrome.exe" "www.google.com"
touch = new file
Get-childitem -path "" -recurse -name | out-file C:\Output.txt
http://ss64.com/ps/
// change from C:\ to D:\
Set-Location -Path
netstat -ano | findstr :5500
TCP 0.0.0.0:5500 0.0.0.0:0 LISTENING 11080
taskkill /PID 11080 /F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment