刪除rc.local文件中包含exit字符的所有行
sed -i '/exit/d' /etc/rc.local
在profile的第3行插入”app_protect &”字符
sed -i "3iapp_protect &" /etc/profile
刪除rc.local文件中包含exit字符的所有行
sed -i '/exit/d' /etc/rc.local
在profile的第3行插入”app_protect &”字符
sed -i "3iapp_protect &" /etc/profile
1.安裝 sudo apt install samba sudo smbd --version 2.檢查服務狀態 systemctl status smbd syste