1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:22:09 +02:00

cat: add Chinese translation (#15491)

* cat: add zh translation

* Update pages.zh/linux/cat.md

Co-authored-by: P2Tree <dicksonliuming@gmail.com>

---------

Co-authored-by: P2Tree <dicksonliuming@gmail.com>
This commit is contained in:
witt 2025-01-15 18:03:30 +08:00 committed by GitHub
parent fe05e8b89b
commit 2775bc93f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

28
pages.zh/linux/cat.md Normal file
View file

@ -0,0 +1,28 @@
# cat
> 打印和连接文件。
> 更多信息:<https://www.gnu.org/software/coreutils/cat>.
- 将文件内容打印到 `stdout`
`cat {{路径/到/文件}}`
- 将多个文件连接到一个输出文件:
`cat {{路径/到/文件1 路径/到/文件2 ...}} > {{路径/到/输出文件}}`
- 将多个文件附加到输出文件:
`cat {{路径/到/文件1 路径/到/文件2 ...}} >> {{路径/到/输出文件}}`
- 将 `stdin` 写入文件:
`cat - > {{路径/到/文件}}`
- 显示带有行号的所有行:
`cat -n {{路径/到/文件}}`
- 显示不可打印字符和空白字符(如果非 ASCII,则带有 `M-` 前缀):
`cat -v -t -e {{路径/到/文件}}`