How to Use ‘tee’ Command in Linux
The `tee` command in Linux is used to read from standard input and write to standard output and files simultaneously. It allows you to redirect the output of a command to both the screen and one or more files. Here's how you can use the `tee` command:
1. Basic usage:
```
command | tee file.txt
```
This command takes the output of `command` and writes it to both the screen and the `file.txt`. You can replace `command` with any command or pipeline.
2. Appending to a file:
```
command | tee -a file.txt
Date: 20 June 2023 Comments: 0