摘要: 方法1: 使用管道传递密码。 比如 root 密码为 abc,要执行命令 fdisk -l, 则用法如下, $ echo abc | sudo -S fdisk -l 其中 -S 参数表示: read the password from the standard input instead of u 阅读全文
posted @ 2020-11-09 10:15 Anonymous596 阅读(2807) 评论(0) 推荐(0) 编辑