-
Notifications
You must be signed in to change notification settings - Fork 78
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
base: master
Are you sure you want to change the base?
Conversation
|
||
使用 `rm` 删除时,请务必注意目录拼写。例如: | ||
|
||
```shell |
There was a problem hiding this comment.
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
```
Deploying linux101-docs with
|
Latest commit: |
4989efa
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2cd53997.linux101-docs.pages.dev |
Branch Preview URL: | https://101-winter.linux101-docs.pages.dev |
docs/Ch05/solution.md
Outdated
-bash: reboot: command not found | ||
``` | ||
|
||
这是为什么呢?这是因为,`reboot` 存在于 `/sbin` 下,而这个目录并不在普通用户登录后默认的 `PATH` 环境变量中。也就是说,Shell 并不会去 `/sbin` 中查找 `reboot`,自然就会提示 `command not found`。如果执行 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ubuntu 默认 PATH 里面是有 /sbin
的。
docs/Ch06/index.md
Outdated
@@ -166,6 +166,10 @@ cURL (`curl`) 是一个利用 URL 语法在命令行下工作的文件传输工 | |||
$ curl -I "http://cn.bing.com" | |||
``` | |||
|
|||
!!! warning "关于从 Internet 获取的脚本" | |||
|
|||
直接通过 `curl` 或者 `wget` 等工具从 Internet 获取脚本然后通过管道传给 `sh` 执行是非常危险的操作。运行脚本前,请确保脚本是从正确的地址下载的,并仔细检查要执行的脚本内容。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个第二章和你修改的第五章都提过了,我感觉没有必要重复第三遍。
@ustcljh