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.
Facing issues? Have Questions? Post them here! I am happy to answer!
- How to list all users in Mac Terminal
- Docker Desktop needs privileged access macOS
- Mac: How to show count of files and folders in Finder
- How to Change Background Color TextEdit on Mac
- How to adjust MacBook Desktop icons size
- Test internet speed using macOS Terminal command
- How to change the default font and text size in Microsoft Excel for Mac
- How to install Java on macOS [Big Sur]
- How to come out of dquote prompt in Terminal - macOS/Linux
- How to Increase MacBook Trackpad Cursor Speed on macOS Ventura/Sonoma
- Fix: Microsoft Excel Quit Unexpectedly on Mac
- How to Adjust macOS System Font Size
- How to Quit Applications on Mac Using Terminal
- How to check zsh installed version using terminal
- Two Ways to Extract rar (*.rar) files on Mac
- How to Right Click on Mac Desktop?
- How to Add Brew to PATH M1/M2 Mac
- How to search (find) in macOS Terminal Console Text
- macOS 13 Ventura - The New About this Mac Window
- TextEdit Get the count of lines in a file
- How to run .sh file in Mac Terminal
- Google Search Hot Trends Screensaver for Mac OS X
- Check Reboot History Mac
- [Solution] Mac Update Stuck Preparing macOS Ventura 13.0 About 30 minutes remaining
- Display Safari URL address link on hover
- Java JDBC Connection with PostgreSQL Driver Example - Java
- JSON Text to JavaScript Object using eval() Example: JSON Tutorial - Json-Tutorial
- How to Launch Terminal App in Mac - MacOS
- How to Peek into tabs in Notepad++ using Document Peeker - NotepadPlusPlus
- Fix: UnsupportedClassVersionError: Unsupported major.minor version 63.0 - Java
- How to know which version of macOS Sonoma you are using - MacOS
- [Solution] POI: Cannot get a NUMERIC value from a STRING cell - Java
- Fix Power BI 404 not found error when connecting SharePoint Online List as Data Source - SharePoint