shang
0
Q:

echo to file permission denied

sudo bash -c 'echo "hello" > f.txt'
1
echo "hello" | sudo tee f.txt  # add -a for append (>>)
1

New to Communities?

Join the community