原标题:通过winget让win10装win11的终端 更新powershell 安装linxu指令集
打开powershell输入以下命令(前提是已装好winget)
winget install --id Microsoft.WindowsTerminal -e
如果遇到报错:
无法加载文件 C:\Users\recle\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的about_Execution_Policies。
所在位置 行:1 字符: 3
- . 'C:\Users\recle\Documents\WindowsPowerShell\profile.ps1'
- `+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess`
则执行
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
选Y并继续
更新powershell
检查版本
$PSVersionTable.PSVersion
安装最新版
winget install --id Microsoft.PowerShell -e
覆盖为最新版
pwsh
如在终端内
linxu指令集
winget install Microsoft.Coreutils
(重启后生效)
如果这篇文章对你有帮助,点个赞吧。