Infra/linux

[shell script] How to write password of sudo on one command line

하우아유두잉 2019. 11. 14. 11:13

 

 

#/bin/bash

echo PASSWORD | sudo -S rm -rf DIRECTORY_PATH