Difference between revisions of "Tee"

From wikieduonline
Jump to navigation Jump to search
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lowercase}}
 +
<code>tee</code> command read from [[standard input]] and write to files and/or [[standard output]].
 +
* https://man7.org/linux/man-pages/man1/tee.1.html
  
 +
<code>tee file.txt</code>
 +
<code>[[tee -a]] file.txt</code> or <code>tee [[--append]] file.txt</code>
 +
 +
echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo [[tee -a]] [[/etc/apt/sources.list.d/]]elastic-8.x.list
 +
 +
== Related terms ==
 +
* <code>[[mkfifo]]</code>
 +
* <code>[[sponge]]</code>
 +
* [[EOF]]
 +
* <code>[[cap]], [[ret]]</code>
  
 
== See also ==
 
== See also ==
 
* {{echo}}
 
* {{echo}}
 +
* {{tee}}
 +
* {{append}}
 
* {{cat}}
 
* {{cat}}
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 10:06, 19 January 2023

Advertising: