Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2025 Winter Review #64

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

2025 Winter Review #64

wants to merge 7 commits into from

Conversation

taoky
Copy link
Member

@taoky taoky commented Mar 5, 2025


使用 `rm` 删除时,请务必注意目录拼写。例如:

```shell
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目前建议用 console 而不是 shell 表示有 $/# 前缀的代码块,当然现有存量的有点多,可以慢慢改……

例子:

```shell
ls -lha
sudo -i
uname
```

```console
$ ls -lha
dir1 dir2
$ sudo -i
# uname
Linux
```

Copy link

cloudflare-workers-and-pages bot commented Mar 6, 2025

Deploying linux101-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4989efa
Status: ✅  Deploy successful!
Preview URL: https://2cd53997.linux101-docs.pages.dev
Branch Preview URL: https://101-winter.linux101-docs.pages.dev

View logs

-bash: reboot: command not found
```

这是为什么呢?这是因为,`reboot` 存在于 `/sbin` 下,而这个目录并不在普通用户登录后默认的 `PATH` 环境变量中。也就是说,Shell 并不会去 `/sbin` 中查找 `reboot`,自然就会提示 `command not found`。如果执行
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ubuntu 默认 PATH 里面是有 /sbin 的。

@@ -166,6 +166,10 @@ cURL (`curl`) 是一个利用 URL 语法在命令行下工作的文件传输工
$ curl -I "http://cn.bing.com"
```

!!! warning "关于从 Internet 获取的脚本"

直接通过 `curl` 或者 `wget` 等工具从 Internet 获取脚本然后通过管道传给 `sh` 执行是非常危险的操作。运行脚本前,请确保脚本是从正确的地址下载的,并仔细检查要执行的脚本内容。
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个第二章和你修改的第五章都提过了,我感觉没有必要重复第三遍。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants