cat 和 fold unix 命令的区别

Bir*_*mar 1 unix cat

我想知道以下 2 个命令catfold命令之间的区别?我只是使用fold命令,它的作用就像cat命令一样。

fold file1.txt
cat fold.txt (both are using to display the contents of the file)
Run Code Online (Sandbox Code Playgroud)

ppr*_*ppr 6

fold命令在cat不换行的情况下显示文本时换行:

在此处输入图片说明