INSTALLED_DRIVE='`fdisk -l | grep Linux | head -1 | cut -d' ' -f1 | cut -d'/' -f3 | sed 's/[1-9]//'`' # Disable sudo asking for your password for the remainder of the script sudo sed -ie '/^%admin/s/ALL$/NOPASSWD: ALL/' /etc/sudoers # Are we running on Dapper?
/sbi n/fdiskbei nan localhost?$ sudo/sbin/fdisk-lSorry, user beinan is not allowed to execute'/sb in /fdisk -l& #39; as root o n localhost.注:不能切换到 root 用户下运行 fdisk 程序;如果有 sudo 的权限而没有 su 的权限:sudo su;12看了 “ linux 命令大全 su 和 sudo 命令的...