shell 自动输入密码
生活随笔
收集整理的這篇文章主要介紹了
shell 自动输入密码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
原文地址:http://biancheng.dnbcw.info/linux/297018.html
在shell腳本中需要用root用的來執行指令:
sudo 自動輸入密碼 echo "password" | sudo -S netstat -tlnp -S ? ? ? ? ? The -S (stdin) option causes sudo to read the password from the standard input instead of the terminal?device.完
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的shell 自动输入密码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IPv6与IPv4的区别
- 下一篇: MarshalByRefObject 的