Want to show line numbers in the vi/
vim editor in the linux system like ubuntu..? Ok I will explain you
how to show numbers in the editor of linux in two methods.
1. Temporary Method:
1. To display line numbers in the file,
open the file in vim/ vi editor through terminal
2. Press [ESC] button and : (colon)
and the type “set number” then press enter,
Eg: :set number