Skip to content
cat:more相关命令总结

cat 查用参数b e

b (查看内容时自动显示行数,)

n (同上,)

e (在当前行末尾添加$)

cat 也可以将内容重定向到某个文件如:

#将你键入的内容重定向写到test.txt文件内

cat /dev/stdin > test.txt

#其实cat test.txt > /dev/stdout 就等于cat test.txt

more +数字 文件名 直接跳到第X行