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!
- 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
- Turning Off Chat in Gmail - Google
- How to enable Do Not Disturb (DND) mode in Microsoft Teams - Teams
- Ways to Convert Java Array to Stream - Java
- How to turn on channel notifications for Microsoft Teams - Teams
- Eclipse Error : The Eclipse executable launcher was unable to locate its companion shared library. - Eclipse
- How to test Exceptions using Java JUnit - Java
- How to Calculate Age from Date of Birth in Java - Java
- What does -Xms and -Xmx stands for in Java? - Java