What is the difference of sudo bash and sudo command in bash file?
298
sudo echo "something" >> /etc/privilegedFile doesn't work
113087
How to insert text into a root-owned file using sudo?
148736
How can I alias a command for sudo?
16283
How to make `sudo` preserve $PATH?
23612
Why does this ssh command not work? (cat ./file | ssh  "cat | sudo -t -t 'cat > /root/location/file'")
155110
What is the difference between executing a Bash script vs sourcing it?
20355
Sudo is also user login password - why? how to change?
68792
What is the difference between using bash and sh to run a script?
116598
Environment variables when run with 'sudo'
26770
How to append to a file as sudo?
86191
What is the difference between 'sudo' and 'su -c'
54429
Why can't I sudo some commands? (e.g., vim)
142486
What is the difference if I start bash with "/bin/bash" or "/usr/bin/env bash"?
36644
Why are PATH variables different when running via sudo and su?
35910
Why does sudo ignore aliases?
131429
Why can't sudo find a command after I added it to PATH?
19524
How can I determine the sudo password?