Windows CMD: Common Commands
9月 12, 2017
·
1 分钟阅读时长
·
62
字
·
-阅读
-评论

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

