<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Tee</id>
	<title>Tee - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Tee"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Tee&amp;action=history"/>
	<updated>2026-04-24T10:51:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=Tee&amp;diff=184&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;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 &lt;b&gt;sudo echo &quot;word&quot; &gt; file&lt;/b&gt; won&#039;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 &lt;b&gt;tee&lt;/b&gt;, like so:   echo &quot;blacklist nouveau&quot; | sudo tee /etc/modprobe.d/denylist.conf  Use &lt;b&gt;-a&lt;/b&gt; to append:  echo &quot;options nouveau...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Tee&amp;diff=184&amp;oldid=prev"/>
		<updated>2024-09-11T14:31:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;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 &amp;lt;b&amp;gt;sudo echo &amp;quot;word&amp;quot; &amp;gt; file&amp;lt;/b&amp;gt; won&amp;#039;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 &amp;lt;b&amp;gt;tee&amp;lt;/b&amp;gt;, like so:   echo &amp;quot;blacklist nouveau&amp;quot; | sudo tee /etc/modprobe.d/denylist.conf  Use &amp;lt;b&amp;gt;-a&amp;lt;/b&amp;gt; to append:  echo &amp;quot;options nouveau...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;https://askubuntu.com/questions/103643/cannot-echo-hello-x-txt-even-with-sudo&lt;br /&gt;
&lt;br /&gt;
If you have to write to a file in a script using sudo like &amp;lt;b&amp;gt;sudo echo &amp;quot;word&amp;quot; &amp;gt; file&amp;lt;/b&amp;gt; won&amp;#039;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 &amp;lt;b&amp;gt;tee&amp;lt;/b&amp;gt;, like so:&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;blacklist nouveau&amp;quot; | sudo tee /etc/modprobe.d/denylist.conf&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;b&amp;gt;-a&amp;lt;/b&amp;gt; to append:&lt;br /&gt;
 echo &amp;quot;options nouveau modeset=0&amp;quot; | sudo tee -a /etc/modprobe.d/denylist.conf&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>