linux file display line number

There are two ways to display the line number of the file content in the Linux system: temporary display and permanent display . This article introduces the two methods

1. Temporary display

  Enter the file: vim a.txt

2.  Permanent display

Edit: vim /etc/vimrc

Add: set number

 

Guess you like

Origin blog.csdn.net/miachen520/article/details/130909245