Pham Quỳnh Anh
New member
How do I print line numbers in Unix?
Answer
To activate the line numbering, set the number flag:
Answer
To activate the line numbering, set the number flag:
- Press the Esc key to switch to command mode.
- Press : (colon) and the cursor will move at the bottom left corner of the screen. Type set number or set nu and hit Enter . :set number.
- Line numbers will be displayed at the left side of the screen: