列表9.7.txt

来自「klinux书籍的配套光盘。可以学习学习。」· 文本 代码 · 共 11 行

TXT
11
字号
【列表9.7】 runsul 脚本程序。
# runsul: Shell script to log on as superuser
# Usage: runsul
# Note: Shares display with all processes, writes the
#       library path command to the user's home directory,
#       then starts the logon as superuser.
xhost + > /dev/null
echo "LD_LIBRARY_PATH="$LD_LIBRARY_PATH >~/libpath.tmp
chmod 777 ~/libpath.tmp
su

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?