first commit
This commit is contained in:
11
content/deepin折腾笔记/第十一章/11.1.md
Executable file
11
content/deepin折腾笔记/第十一章/11.1.md
Executable file
@@ -0,0 +1,11 @@
|
||||
# 11.1 以管理员身份自启动
|
||||
|
||||
1 编辑 ~/.profile 添加下面三行内容:
|
||||
|
||||
2 sudo -S rmmod pcspkr <<EOF
|
||||
|
||||
3 password(你的密码)
|
||||
|
||||
4 EOF
|
||||
|
||||
5 在Shell脚本中,通常将EOF与 << 结合使用,表示后续的输入作为子命令或子Shell的输入直到遇到EOF为止,再返回到主Shell,即将‘你的密码’当做命令的输入。
|
||||
Reference in New Issue
Block a user