Home / 07:51 / 07:51 / 07:51

Daily Archives: 02/05/2020

How to append text to a system file via terminal with sudo command

How to use tee command to append a file

echo ‘ router’ | sudo tee -a /etc/hostsNAME tee — pipe fittingSYNOPSIS tee [-ai] [file …]DESCRIPTION The tee utility copies standard input to standard output, making a copy in zero or more files. The output is unbuffered. The following options ...

Read More »