How to show line numbering in nano when opening a file in Linux

Chris Worner

Well-known member
Registered
Joined
Apr 15, 2016
Messages
612
Points
28
I use nano editor to edit file in Linux but it doesn't display line numbers, how can I enable this function in nano? or there is a way to make nano to automatically show line numbering each time I open a file?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Hi Chris

You can enable line numbers in a couple of ways.

1. CTRL + C
2. Launch nano with line numbering: nano -c [filename]
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
nano -c filename works fine for me. Did you include the [] ?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
No don't include the [] that's just in my example to specify the file

just use nano -c filename
 
Older Threads
Latest Threads
Replies
0
Views
19
Replies
1
Views
37
Replies
0
Views
226
Replies
1
Views
48
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top