PowerShell 脚本简介
什么是 PowerShell
PowerShell 是一种跨平台的任务自动化解决方案,由命令行 shell、脚本语言和配置管理框架组成。 PowerShell 目前已经支持在 Windows、Linux 和 macOS 上运行。
mac 安装 PowerShell
PowerShell 7.3.4
x64 processors - powershell-7.3.4-osx-x64.pkg
https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/powershell-7.3.4-osx-x64.pkg
M1 processors - powershell-7.3.4-osx-arm64.pkg
https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/powershell-7.3.4-osx-arm64.pkg
示例
要确定当前目录位置的路径,请输入命令 Get-Location