The proper way in bash to overwrite a file is echo SOMETHING | sudo tee FILE
. Also see Bash Simplified Guide and Cheat Sheet
2 Likes
The proper way in bash to overwrite a file is echo SOMETHING | sudo tee FILE
. Also see Bash Simplified Guide and Cheat Sheet