Top Mac Terminal Tricks Your Need To Know

Coding on Laptop
Quick Fix

Download and try Outbyte MacAries right now to see what it can do for your Mac.

Developed for macOS

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy Policy.

For the typical Mac users, the Terminal is something that seems too complicated to use. Even worse, some of them don’t know it exists. Now, if you don’t have any idea what the Terminal is all about, it’s where you execute different Mac Terminal commands. Believe us; it’s a fantastic tool to use, especially if you know how to use it.

How to Access the Mac Terminal

Accessing your Mac’s Terminal is easy as pie. Just follow the steps below:

  • Go to the Applications folder.
  • Select the Utilities folder.
  • Open Terminal.
  • The Terminal should now be displayed on your screen.

Since you already know where to find the Terminal, it’s time that we teach you some of the best and handy Mac Terminal tricks.

7 Helpful Mac Tips and Tricks

7 Helpful Mac Tips and Tricks

Pro Tip: Scan your Mac for performance issues, junk files, harmful apps, and security threats
that can cause system issues or slow performance.

Free Scan for Mac Issues
macOS compatible

Special offer. About Outbyte, uninstall instructions, EULA, Privacy Policy.

1. How to Change the Default Format of Screenshot Images

By default, your Mac saves screenshots in PNG file format. Of course, there is nothing wrong with that. However, if you are planning to share these images online, you might need them to have a lower resolution. For that, your best option is to save these screenshots as JPG, PDF, or TIFF files.

To save a screenshot on your Mac in another format, launch Terminal and type, defaults write type JPG. By typing that command in the terminal, all screenshots will be saved in JPG format. If you want, you can also try other image formats that your Mac supports. Just replace JPG with another image format you desire.

2. How to Create a Folder for Recently Used Applications

Creating a Create Applications folder on your Mac is possible. Open Terminal on your Mac and type this command:

defaults write persistent-others –array-add ‘{ “tile-data” = { “list-type” = 1; }; “tile-type” = “recents-tile”; }’;killall Dock

Check on your Dock and see a new item generated. Control-Click on the item to see several options that will allow you to modify what will show in the Recent Applications folder.

3. How to Flush Your Mac’s Memory

When your Mac starts to become unresponsive, the usual thing that you’d do is to restart it. Doing so will free up the system memory to make things normally run again. Then again, the downside of this restarting process is you need to save all your current projects beforehand; else they will be lost. You also need to switch off certain apps.

Though there are apps out there like Mac repair app, which helps improve the performance of your Mac by optimizing the RAM to give room for more active apps, there is one Terminal tip that is worth trying. As with other tips listed in this article, this one also starts with opening the Terminal. Once it is open, proceed with typing the command, sudo purge.

After entering the command, you will be asked for your password. Wait for your Mac to process the command and you should eventually notice an improvement in your Mac’s performance.

4. How to Create a Custom Login Message

If ever you want to troll your friends, this tip may come in handy. Add a custom message on your Mac’s login screen. To do that, open Terminal on your Mac and enter this command:

sudo defaults write /Library/Preferences/
LoginwindowText “In case of loss, call 123-456-7890.”

Feel free to modify your custom message by changing what’s inside the quotation marks.

5. How to Keep Your Mac Awake

If you’re currently running a vital task or you are recording something on your screen, you need to prevent your Mac from going to sleep. Fortunately, there is a Terminal command for that: caffeinate.

After entering the command, your Mac should stay awake until you end it by pressing Control + C. In case you wanted to set a specific time before your Mac goes to sleep, enter this command: caffeinate –u –t 3600.

The command above will keep your Mac awake and be running for an hour. If you wish to adjust the time, replace 3600 with your preferred time in seconds.

6. How to Force Your Mac to Restart After a Crash

There are rare instances when our Macs suddenly freeze and stop. In these times, crying and yelling won’t help. What you can do instead is open Terminal and enter this command: sudo systemsetup –setrestartfreeze on. This command should make your Mac reboot as soon as it detects a system freeze.

7. How to Copy the Contents of a Certain Folder from One Location to Another

While you can conveniently press the Option key and drag a file to a new location to copy it, you can simplify the process by trying out this easy Terminal trick:
ditto –V ~/original/folder/ ~/new/folder/.

On a Final Note

The Terminal is quite a handy feature for Macs. Plus, it’s straightforward to use, especially now that you know what commands to enter there. Hope you enjoy trying out these commands! Feel free to share your favorite Mac Terminal trick in the comments section below!

Give us some love and rate our post!
[Total: 0 Average: 0]
Spread the love
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Featured Stories
How to Update UEFI BIOS in Windows: A Step-By-Step Guide

Updating your BIOS can be beneficial but isn’t always required. This delicate process can provide…

Spread the love
Mouse Cursor Disappears on Windows 10: 13 Solutions

When your mouse disappears on Windows 10, it can significantly disrupt your usual computer interactions….

Spread the love
Snipping Tool Not Working on Windows 11: Solutions

After the Windows 11 update, a range of challenges and issues have been identified with…

Spread the love
Windows 11 Mouse Click Not Working: Causes and Fixes

The issue of the left mouse click not working is not exclusive to Windows 11,…

Spread the love
Windows 11’s Wi-Fi Adapter Disappeared: Quick Fixes

Windows 11, the latest iteration of Microsoft’s widely used operating system, has brought about many…

Spread the love
How to Fix OneDrive error 0x80071129

OneDrive is a helpful feature in Windows; you can easily access your files on-demand without…

Spread the love
PC Repair
How to Fix Error Code 0xA00F429F on Windows 10/11

Windows 10 and 11 come with pre-installed UWP apps that are essential for daily use….

Spread the love
Error Copying File or Folder: The Requested Value Cannot Be Determined

If you encounter the Windows 10/11 error message “The requested value cannot be determined,” this…

Spread the love
What to Do When a Deleted User Still Appears on the Windows 10/11 Login Screen?

Windows 10/11 allows you to create multiple user accounts – useful for shared computer access….

Spread the love