If you want to display the line numbers at the left-hand side gutter area in Nano editor on the Mac, then you can make use of the Keyboard Command: Esc + n
If for some reason you do not see any line numbers on the file, then you need to be aware that this does not work with the default Nano editor that is available with macOS. You will need to get the GNU version of Nano, you can get it using homebrew.
Install GNU Nano:brew install nano
Also make sure to add the path to your .zshrc profile file, else you might be again using the default nano editor.
Path:PATH="/opt/homebrew/bin/nano:$PATH"
Note: The path may vary based on your Mac CPU type M1/M2 or Intel.

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!