linux快速地写一个文本文档(转)+cat、echo、vi区别

1.新建一个文本文件:touch filename
2.在文本中写入:echo “hello word”>>file
https://blog.csdn.net/u011068702/article/details/53117738

其中,显示一个文本文件的内容,用cat指令:https://blog.csdn.net/tanga842428/article/details/52628357

※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
cat:显示文档内容;
echo:相当于“printf”功能;
vi:编辑文本
https://www.jianshu.com/p/33e076df255d

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42732240/article/details/89516745