cat:查看文件内容

cat [options] 文件列表 

1、用来显示文件内容,

cat file.txt

2、用来将两个或多个文件连接起来

cat file1.txt file1.txt > file3.txt

把file1.txt file2.txt合并到file3.txt 如果file3.txt 不存在则会自动创建之

3、-n 显示行号

cat -n file.txt

 

4、文件内容过长more less

cat file.txt | more

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-10-23
  • 2022-12-23
  • 2021-09-25
  • 2022-01-12
  • 2022-02-02
猜你喜欢
  • 2021-09-15
  • 2021-06-30
  • 2021-11-28
  • 2021-09-18
  • 2021-09-21
  • 2022-01-06
相关资源
相似解决方案