cat
输出文件内容,和linux的cat
命令类似
命令选项
命令选项 | 描述 |
---|---|
--encoding <encoding-name> | 指定文件编码 |
-M, --sizeLimit <number> | 限制结果输出大小 |
-h, --help | 帮助 |
<files> | 打开的文件路径 |
示例
bash
[arthas@70070]$ cat /tmp/test.txt
abc
# 指定编码
[arthas@70070]$ cat --encoding utf8 /tmp/test.txt
[arthas@70070]$ cat /tmp/test.txt
abc
# 指定编码
[arthas@70070]$ cat --encoding utf8 /tmp/test.txt
1
2
3
4
2
3
4