Change Mac Terminal Font Size using Command


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,

Examples:

osascript -e 'tell application "Terminal" to set font size of window 1 to 14'
Change Mac Terminal Font Size using Command
osascript -e 'tell application "Terminal" to set font size of window 1 to 24'
Change Mac Terminal Font Size Example 2

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!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap