Skip to content

Instantly share code, notes, and snippets.

@brijesh-deb
Last active November 19, 2018 08:25
Show Gist options
  • Save brijesh-deb/837017c539b9d8bfab923ff02f4aea09 to your computer and use it in GitHub Desktop.
Save brijesh-deb/837017c539b9d8bfab923ff02f4aea09 to your computer and use it in GitHub Desktop.
#CheatSheet #Windows #HandsOn

Windows Cheat Sheet

  • Kill a process which is using a specific post (8080)
    • Get list of process which is using port 80: Netstat -ano|findstr ":80"
    • Use the PID to kill the process: Taskkill /F /PID [pid]
  • Remote desktop client: Start> mstsc
  • List of windows service: Net start
  • Check properties of a service: Sc queryex [servicename]
  • Check hidden files & folders from command prompt: dir /a
  • List of all services running: start> run> services.msc
  • List of processes: tasklist
  • Change environment variable : control panel> system and security> system > advanced system settings> system properties
  • Starting command prompt as administrator
    • click start
    • Type cmd, press CTRL+SHIFT+ENTER
  • Delete a folder: del [directory name]
  • Display all files (including hidden ones) in a folder: dir /a
  • Find PID of a process using a port : netstat -a -n -o | find ""
  • Kill a process: taskkill /pid /f
  • set proxy
set HTTP_PROXY=http://xx.xx.xx.xx:8080
set HTTPS_PROXY=http://xx.xx.xx.xx:8080  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment