linux中cat和more的使用不同点
以打开.bash_history文件为例
more打开.bash_history文件的一部分,剩余的部分需要按enter键我们才能看得到
more .bash_history
cat .bash_history则是将.bash_history里面的内容全部打开
他两的区别在于当循环处理文件的时候,more命令就不合适了,cat适合。
以打开.bash_history文件为例
more打开.bash_history文件的一部分,剩余的部分需要按enter键我们才能看得到
more .bash_history
cat .bash_history则是将.bash_history里面的内容全部打开
他两的区别在于当循环处理文件的时候,more命令就不合适了,cat适合。