Closed luca-della-vedova closed 3 years ago
sudo echo "string" > file fails with permission denied errors because superuser privileges are only applied to the echo command.
sudo echo "string" > file
Changing to sudo sh -c "echo 'string' > file" fixes the issue.
sudo sh -c "echo 'string' > file"
This was not an issue because the bash shell was likely logged in as root when the tutorial was written.
Thank you for your precious pull request.
sudo echo "string" > file
fails with permission denied errors because superuser privileges are only applied to the echo command.Changing to
sudo sh -c "echo 'string' > file"
fixes the issue.This was not an issue because the bash shell was likely logged in as root when the tutorial was written.