Linux中查看文件行数

143 阅读1分钟

查看文件行数

[root@yang-1 ~]# wc -l anaconda-ks.cfg.1 
51 anaconda-ks.cfg.1

more命令和cat的功能一样都是查看文件里的内容,但有所不同的是more可以按页来查看文件的内容,还支持直接跳转行等功能