Windows命令参考
CMD、PowerShell命令与系统排错操作速查
| 🪟 CMD常用 | |
|---|---|
dir | 列目录(同ls) |
cd /d D:\path | 跨盘符进入目录 |
md / rd /s /q d | 建目录/强制删目录 |
copy / xcopy / robocopy | 复制/目录复制/健壮复制 |
type f / findstr "词" f | 查看/搜索(同cat/grep) |
ipconfig /all / /flushdns | IP信息/清DNS缓存 |
netstat -ano | findstr :80 | 查端口占用PID |
| 🔷 PowerShell | |
Get-ChildItem(别名ls/dir) | 列目录 |
Set-Location(cd) | 切换目录 |
Get-Content f(cat) | 查看文件 |
Select-String -Path f -Pattern 词 | 搜索文本 |
Get-Process / Stop-Process -Id n | 进程查看/结束 |
Get-Service / Restart-Service 名 | 服务查看/重启 |
Invoke-WebRequest url -OutFile a | 下载文件 |
| ⚙️ 系统排错 | |
tasklist / taskkill /PID n /F | 任务列表/强制杀进程 |
systeminfo | 系统信息 |
sfc /scannow | 系统文件修复 |
ping / tracert host | 连通/路由跟踪 |
where 命令 | 查可执行文件路径 |
📖 使用说明
本页为速查表,左CMD右PowerShell对照查阅。
💬 用户评论 (0)
还没有评论,快来抢沙发!