fix: fix the description of sudo

This commit is contained in:
Ryan Yin 2024-04-17 22:23:28 +08:00
parent 3ae3f70da4
commit 4f141293d5
2 changed files with 4 additions and 5 deletions

View File

@ -317,9 +317,8 @@ Error: nu::shell::external_command
/home/ryan/nix-config> exit
```
But it's possible to run those packages with privileged access without switching to
`root`, by using `sudo`, we temporarily grant the current user privileged access to system
resources:
The solution is to use `sudo` to run the command, which temporarily grants the current
user the ability to run the command as a privileged user (`root`):
```sh
sudo kubectl

View File

@ -305,8 +305,8 @@ Error: nu::shell::external_command
/home/ryan/nix-config> exit
```
但是,我们可以通过 `sudo` 命令,临时授予当前用户访问系统资源的特权,从而在不切换到 `root`
用户的情况下,使用 `home.nix` 安装的软件包:
解决方法是,使用 `sudo` 来运行命令,该命令临时授予当前用户以特权身份(`root`)运行命令的权
限:
```sh
sudo kubectl