1.外部直接显示行号 cat –n 文件。

 linux  显示行号

2.在文本编辑情况显示行号  :set nu  要保用wq .取消用q.

 linux  显示行号

 

3.空格行不显示行号。cat  -b 文件。

 linux  显示行号

 

相关文章: