Windows CMD: Common Commands
·
1 min read
·
62
Words
·
-Views
-Comments
Windows CMD lags far behind Linux bash and macOS Terminal, but it’s still useful. Here are common commands I use.
Environment Variables
- Show env var
NODE_ENV
set $NODE_ENV
- Set env var
NODE_ENV
set NODE_ENV="production"
Networking
- View port usage
netstat -ano
- Find processes using a specific port
netstat -ano|findstr "3001"
- Find process by PID
tasklist|findstr "22222"
- Kill process
taskkill /f /t /im node.exe