Tee: Revision history

Jump to: navigation, search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

11 September 2024

  • curprev 14:3114:31, 11 September 2024Ardika Sulistija talk contribs 530 bytes +530 Created page with "https://askubuntu.com/questions/103643/cannot-echo-hello-x-txt-even-with-sudo If you have to write to a file in a script using sudo like <b>sudo echo "word" > file</b> won't work because the redirection is done by the shell before sudo is even started. So make sure the redirection happens in a shell with the right permissions by using <b>tee</b>, like so: echo "blacklist nouveau" | sudo tee /etc/modprobe.d/denylist.conf Use <b>-a</b> to append: echo "options nouveau..."