November 2015
Beginner
282 pages
5h 5m
English
In some cases, it's necessary to print an output on stdout and save an output in a file. In general, command output can either be printed or can be saved in a file. To solve it, the tee command is used. This command reads from the standard input and writes to both standard output and files. The syntax of tee will be as follows:
tee [OPTION] [FILE …]
The tee command copies the output to each FILE and also to stdout. The OPTIONS can be as follows:
|
Option |
Description |
|---|---|
|
|
This appends to the |
|
|
This ignores interrupt signals, if any |
Writing an output to stdout and file: In general, to write an output to stdout and file, we will call the same command ...
Read now
Unlock full access