If you work with the vi or vim editors in Linux, sometimes it’s nice to be able to see the line numbers display on the editor.

Turn it on.

<pre lang="bash">
vim filename
:set number

Turn it off.

<pre lang="bash">
vim filename
:set nonumber