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!
More Posts related to MacOS,
- How to Display Analog Clock on Mac Menu Bar
- Shutdown Mac Terminal Command
- How to know the Serial Number of MacBook on macOS Ventura 13.0
- macOS: Remove Desktop or Documents Folder from iCloud Drive Syncing
- [fix] How to Show file extensions on all files on Mac
- How to install Zoom Add-in to Outlook (Mac)
- How to turn off Stage Manager - macOS Ventura
- Fix - Xode - Internal logic error: Connection was invalidated
- How to do calculations in Mac Terminal
- How to delete a Page in Microsoft Word File on Mac (macOS)
- How to Refresh Mac Desktop
- How to install Java on macOS [Big Sur]
- How to Disable Mac Terminal Bell Sound
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to Uninstall Brew on Mac
- Find your macOS version
- Change TextEdit File Encoding
- AppleScript Example with TextEdit
- How to install homebrew (brew) on M1 Mac
- How to Find File and Directory Size in Mac Terminal
- How to open new tab in Sublime Text Editor [macOS]
- How to list all users in Mac Terminal
- Turn off Auto-Capitalization on macOS Ventura 13
- How to check Command Line Tools Version [Updated for Ventura]
- Change Current User Password using Mac Terminal Command
More Posts:
- PowerShell - How to use Try Catch Finally blocks for error exception handling (Windows/SharePoint) - SharePoint
- Fetch only content-type using cURL Command - cURL
- Fetch More then 10 Links Per Page in Google Search Result - Google
- Java TLSv1.3 protocol code example using SSLSocket - Java
- Fix: bash: ipconfig: command not found on Linux - Linux
- AADSTS90033: A transient error has occurred. Please try again. [Microsoft 365] - Microsoft
- 13.0 MacOS Ventura release date - MacOS
- Find Covid-19 Vaccine centers on macOS or iOS Maps App - News