Difference between revisions of "Tee"
Jump to navigation
Jump to search
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
<code>tee</code> command read from [[standard input]] and write to files and/or [[standard output]]. | <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 | * 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 == | == Related terms == | ||
Line 11: | Line 12: | ||
* <code>[[sponge]]</code> | * <code>[[sponge]]</code> | ||
* [[EOF]] | * [[EOF]] | ||
+ | * <code>[[cap]], [[ret]]</code> | ||
== See also == | == See also == | ||
* {{echo}} | * {{echo}} | ||
* {{tee}} | * {{tee}} | ||
+ | * {{append}} | ||
* {{cat}} | * {{cat}} | ||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 10:06, 19 January 2023
tee
command read from standard input and write to files and/or standard output.
tee file.txt
tee -a file.txt
ortee --append file.txt
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[edit]
See also[edit]
echo
,print, printf
,tput
,logger
,write-output, echo -e, /dev/stdout, banner
tee
,sponge
,append, prepend, tee --append
- Append, prepend
cat
,tac
,more
,less
,tail
,mtail
,echo
,stdin
,tr
,column
,paste
,truncate
,logrotate
,xzcat
pv
,progress
,sort
,ncat
,virt-cat
,awk
,join
,col
,fold
,tee
,sponge
,nfs-cat
,journalctl, ccat, icat, EOF
, lolcat
Advertising: