mirror of https://github.com/alibaba/arthas.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
764 B
Markdown
30 lines
764 B
Markdown
# tee
|
|
|
|
[`tee` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en&id=command-tee)
|
|
|
|
::: tip
|
|
Similar to the traditional `tee` command, it is used to read standard input data and output its contents into a file.
|
|
|
|
`tee` will read data from standard input device, output its content to standard output device, and save it as a file.
|
|
:::
|
|
|
|
```
|
|
USAGE:
|
|
tee [-a] [-h] [file]
|
|
|
|
SUMMARY:
|
|
tee command for pipes.
|
|
|
|
EXAMPLES:
|
|
sysprop | tee /path/to/logfile | grep java
|
|
sysprop | tee -a /path/to/logfile | grep java
|
|
|
|
WIKI:
|
|
https://arthas.aliyun.com/doc/tee
|
|
|
|
OPTIONS:
|
|
-a, --append Append to file
|
|
-h, --help this help
|
|
<file> File path
|
|
```
|