td;lr: On GNU Nano press escape key followed by key n on your Mac to show line numbers.
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:
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!
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
- How to change default macOS Terminal Window size - MacOS
- #YouMakeStrayKidsStay STRAY KIDS EVERYWHERE ALL AROUND THE WORLD Trending Hashtag - News
- TextEdit save file with txt extension - MacOS
- Python: How to create a Dictionary of Lists with Examples - Python
- Bash Command to Check Disk Space - Bash
- How to Word wrap eclipse console logs width - Eclipse
- How to Uninstall Vim on Mac? - vi