首页 / 文章教程 / 正文

Windows命令参考

📝 文章教程 · 🕐 2025-08-15 · 👁 3 次
📌 摘要:CMD、PowerShell命令与系统排错操作速查

本页为速查表,左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 / /flushdnsIP信息/清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 命令查可执行文件路径

💬 用户评论

还没有评论

微信二维码
微信号:请添加微信联系我