Windows CMD: Common Commands

Windows CMD: Common Commands

9月 12, 2017 · 1 分钟阅读时长 · 62 字 · -阅读 -评论

command-shot

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
Alan H
Authors
开发者,数码产品爱好者,喜欢折腾,喜欢分享,喜欢开源