You can always go to the Terminal Settings and change the font size of the text of the console, but if you wish to achieve the same using a command on your shell, you can make use of the AppleScript - osascript command.
All you need to do is run the osascript command and tell to change the Terminal application font size to the size that you want - increase or decrease based on the number you provide,
osascript -e 'tell application "Terminal" to set font size of window 1 to 14'
osascript -e 'tell application "Terminal" to set font size of window 1 to 24'
This is not an AI-generated article but is demonstrated by a human on an M1 Mac running macOS Sonoma 14.0.
Please support independent contributors like Code2care by donating a coffee.
Buy me a coffee!
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
- [Android Studio] Hardcoded string Button, should use @string resource - Android-Studio
- Python ternary operator (known as Conditional Expression) Example - Python
- [Fix] Docker Error response from daemon: manifest for :latest not found: manifest unknown - Docker
- How to enable, create and use Virtual Breakout Rooms in Microsoft Teams - Teams
- Top 10 emerging breakthrough trending technologies - HowTos
- Graph API error when querying BookingBusinesses - ErrorExceededFindCountLimit, The GetBookingMailboxes request returned too many results - Microsoft
- Notepad++ do not show CRLF characters - NotepadPlusPlus
- Clone a particular remote brach using git clone command - Git