linux6-touch&cat&more

linux6-touch&cat&more


touch

创建文件

在/tmp目录下创建test.txt文件

touch /tmp/test.txt

填写多个参数创建多个文件

touch test1.txt test2.txt test3.txt

cat

cat, concatnate, 查看文件内容

查看/etc/目录下的service文件内容

cat /etc/service

more

查看文件内容

cat直接显示全部内容, more可以翻页查看, 通过空格翻页, q退出查看

查看/etc/目录下的service文件内容

more /etc/service
posted @ 2024-04-29 16:37  HIK4RU44  阅读(9)  评论(0)    收藏  举报