侧边栏壁纸
  • 累计撰写 23 篇文章
  • 累计创建 8 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

Windows 终端使用sudo

付心武士
2024-06-20 / 0 评论 / 0 点赞 / 1 阅读 / 1274 字
  • 使用 gsudo

github链接: https://github.com/gerardog/gsudo

官方给的安装方法:

If you use any of the following Package Managers:

Using WinGet: Run winget install gerardog.gsudo

Using Chocolatey: Run choco install gsudo

Using Scoop: Run scoop install gsudo

Or:

Download and run the MSI file from the latest release.

Or use the following script to achieve the same:

PowerShell -Command "Set-ExecutionPolicy RemoteSigned -scope Process; [Net.ServicePointManager]::SecurityProtocol = 'Tls12'; iwr -useb https://raw.githubusercontent.com/gerardog/gsudo/master/installgsudo.ps1 | iex"

Manually: Download the ZIP file from the latest release. Uncompress and add to PATH.

  • 使用 Sudo for Windows

微软官方文档: https://learn.microsoft.com/zh-cn/windows/sudo/

0

评论区