终端
Windows Terminal
Powershell
基本导航
显示当前位置:
powershell
Get-Location列出当前目录:
powershell
Get-ChildItem常用缩写:
powershell
pwd
ls
dir进入目录:
powershell
Set-Location D:\Code
cd D:\Code返回上一级:
powershell
cd ..创建目录:
powershell
New-Item -ItemType Directory -Path D:\Code\demo删除文件:
powershell
Remove-Item .\old.txtWARNING
Remove-Item -Recurse 会递归删除目录。看不懂路径时不要运行。