Best Terminals For Mac
Apple's macOS platform includes Terminal, which is equivalent to Command Prompt in Windows OS. Since the macOS is based on UNIX, Terminal might give you a vibe of a dangerous tool where one wrong command can wreck your system. Sure, it is valid only to an extent. There are a bunch of harmless commands that are usable in customizing the interface and other settings of macOS.
The Terminal on macOS can be extremely useful in tweaking the performance of your Mac. Now it entirely depends on what you want to achieve. In case you have been dreading to use it, you can always get comfortable by using simpler tricks. Here are the top 11 terminal command tricks to try on your Mac.
In this tutorial I'll cover some of the best Terminal replacements available and show how they can benefit you. Cathode, of all the Terminal replacements shown here, is the only app accessible for download from the Mac App Store and the only priced option—costing £6.99. While this will deter those who would rather receive a free. Boot Camp will allow you to run Windows and Windows apps at full speed, using all the processor power and memory built into your Mac. That's the best solution for running games or professional. Best Linux terminal emulators of 2020. By Alex Cox, Nate Drake 01 May 2019. Type in style – install an upgraded window to the shell. Image credit: Cool Retro Term. Best Mac Terminal Tricks and Commands to Know. Abhijith N Arjunan. Last updated on: February 22, 2018. Decades back, GUI was a distant dream for almost every computing device out there. Users had to take some commands by heart when it came to using a PC or Macintosh device. The case was same when you wanted to do a simple calculation or when it. The terminal in the graphical user interface is commonly known as ‘Terminal Window.’ Developers use terminal emulator clients to gain shell access to the computer. The text-mode interface provides programmers more control over all functions and expedites processes. Below we will discuss the best terminal emulators for Windows.
Also on Guiding Tech
How To Speed Up a Slow Mac
Read MoreNote: While selecting/copying a command, make sure you scroll all the way towards right to select the complete command in the gray box. Otherwise partial commands will not work as intended.1. Open Folders
One of the coolest ways to get familiar with the Terminal is to use it to open files and folders. I know that clicking on Finder will do the same. However, using Terminal, you can open a specific folder or a file without exposing your file structure to anyone.
Let's say you want to open your Documents folder. Then you can type the following command and then hit Enter.
And that opens my Documents folder. There's a DOCX file in there. I can use Terminal to open that too. For that, you need to type out the command with some requirements — the path of the respective file:
Open -a 'Application Name' /Path/to/File
So for opening the DOCX file in the Documents folder of my Mac, I typed in the command below and then hit Enter:
That opens up the specific file using the predefined program. You can also use the wildcard character (*.extension) instead of the full filename. However, if you have more than one file in carrying the same extension, then it might freeze your Mac for a bit.
2. Change Default Save Screenshot Location
By default, the macOS Mojave stores the screenshots on the Mac's desktop. Now if you have iCloud sync enabled, which I am sure you do, then it keeps uploading to your account. Thankfully, you can change the save location for the screenshots instead of crowding your desktop.
Here's the command you need to type before hitting Enter:
In the above command, you can provide any specific file location instead of ~/Downloads as shown.
After hitting Enter, I need to reset the SystemUIServer for the changes to take effect immediately. So feed in the following command.
Though it is not required, I would recommend restarting your Mac.
3. Change Screenshot Image Type
The macOS saves the screenshots in JPG format by default. You can change that to save them in PNG or PDF formats too. Here's how to do that quickly with this specific command:
After that, you need to kill the SystemUIServer again.
Most commands which require some system changes shall mandate shutting down the SystemUIServer. So do that quickly.
Now, your new screenshots will save in the PNG format. Do note that PNG files are generally larger than JPG files. So keep an eye on how much storage space they consume.
4. Show Hidden Files
Have you tried looking for the option to let the Finder show hidden files? Well, it is tougher than picking the show hidden files on Windows. I always forget how to enable that. Thankfully there is a helpful command that makes it happen in a few seconds.
After that, you need to force shut the Finder.
Now you should see a lot of hidden files in the Finder. They would be greyed out but still visible. If you roll back this change, then you need to change TRUE to FALSE in the command.
5. Switch Off the Dashboard
Apple promoted the Dashboard view to access calculator and sticky notes quickly. I bet you rarely use that one for you can launch the Calculator app or Sticky Notes app using Mission Control of Spotlight. So you can switch it off and don't have to worry about opening it by mistake.
Here's the command to turn off the Dashboard.
Next, you must kill the Dock so that the changes are correctly applied.
Now I don't have to worry about accidentally opening the Dashboard. If you want to switch it on again, then change TRUE to FALSE in the command.
Also on Guiding Tech
How to Install New Fonts in Mac OS X
Read More6. Download Files
Did you know that you can download files using the Terminal? Yes, you don't need to keep the browser running just for that file. The only requirement here is that you must have the file's download link. So the command syntax is:
curl -0 downloadlink
First, navigate to the folder where you want to download the file. For that, you need to switch to the Downloads directory.
After that, you can feed the command to download the VLC for macOS from the official site. It would appear something like this:
7. Ditto for Backups
Copying files and taking backups on macOS is quite swift — thanks to the SSDs and the flash storage. However, it does take a while to copy a large amount of data. Thankfully, Terminal offers a useful command to copy files. Here's how you can do it while watching the name of files that the command copies.
ditto -V /currentpath/ /new/path/
So I want to copy the DMG downloaded in the previous section to the desktop.
That should do the needful. If you want to copy the files to an external drive, then you need to provide the destination path correctly.
8. Always Show File Path in the Finder
If you have switched from Windows recently, you would have noticed that the Finder on macOS doesn't show file path like the Explorer in Windows. However, you can force Finder to show you the file path with this command:
After hitting enter, you need to stop the Finder.
After you hit Enter, the Finder will relaunch. Then you should see the file paths at the top of the Finder window.
9. Power Chime on Connecting the Charger
Has it ever happened that you've connected the MagSafe charger to your Mac but forgot to flip on the power switch? I have lost the count. Thankfully, I stumbled upon this useful command that provides an audio feedback chime whenever I connect the MagSafe charger.
Feed this command in the Terminal and hit Enter.
10. Stop Your Mac from Sleeping
Often you are downloading a massive file, and you don't want your Mac go to sleep. If it is a temporary requirement, then a simple command can make it happen. Just type the following command, hit Enter and walk away from your Mac.
In this command, the number 600 signifies seconds. So with this command, the Mac won't sleep until 10 minutes (600 seconds). You can enter a relevant number of seconds or just the word 'caffeinate' to prevent your Mac from sleeping.
However, if you close that Terminal window, then the command will stop executing and the Mac will go to sleep on a predefined time.
11. Check Your Mac's Uptime
Wondering how long it has been since you've restarted your Mac? A simple restart can sort a lot of things in order and boost your Mac's performance. Here's a command to check your how long your Mac has been running without a Restart or a Shutdown
That should give you all the details with a timestamp.
Also on Guiding Tech
#productivity
Click here to see our productivity articles pageUsing Terminal Is Fun
The Terminal is an absolute delight to use and tinker around in the macOS. However, we would strictly advise against using random commands provided by unverified sources or strangers. Other than that, these commands should run on latest macOS Mojave update till last few versions.
You should always double-check the Terminal commands that involve removing, deleting or disabling any service. If you stick to our list, then you would be confident of using Terminal like a pro.
Next up: Are you bored of the same old Lock Screen on your Mac? Here is a nifty guide that will show how to customize the lock screen on your macOS Mojave running Mac.
The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.Read NextHow to Customize the Lock Screen on macOS 10.14 MojaveAlso See#terminal #macos
Did You Know
Thunderbolt 3 is a data and video transfer protocol and is developed by Intel.
More in Mac
Top 4 Ways to Fix Mac Desktop Icons Missing or Not Showing
Get all best apps via Setapp
For those who have never used Terminal commands on Mac before, the app’s resemblance to hacking (as seen in movies) can be a little intimidating. But in fact, Terminal isn’t all that complicated once you know a little about how it works.
Many commands are surprisingly straightforward, such as how to open a file in Terminal and the dangerously powerful (since it bypasses the Trash) Terminal delete file capability:
Mac Terminal Alternatives
open ~/Desktop/filename.extension
rm filename.extension
The rm stands for remove, so use with caution!
For another example, let’s look at how to create a folder on Mac. Using Finder, this would simply be a case of right-clicking and choosing New Folder. When it comes to how to make a directory in Terminal, we’d need to use a specific command:
mkdir 'new folder'
The Terminal window itself is designed to grant users access to UNIX features hidden away behind the Mac operating system. But you don’t need to learn about all of the technical stuff if you don’t want to. All you need to know is that a bit of Mac command line rote learning can help you do all sorts of cool things with your laptop or desktop that you couldn’t achieve otherwise.
Fix Mac problems without Terminal
Terminal commands aren’t easy. With Setapp, a one-stop platform for Mac apps, you can do the same — or more — in a beautiful interface.
8 Best Terminal Commands For Mac
Of course, defining the best Terminal commands for Mac really depends on what you want to get out of this tool. First things first though, to start you need to know how to open command prompt on Mac because you can’t use any Terminal commands without it:
Double-click your Macintosh HD icon or open a Finder window
Make your way into the Applications folder
Double-click Utilities and open Terminal
You’ll be met with a window that shows the name of your Mac followed by your username and a $ sign. All of the Mac Terminal commands listed here are entered after this, followed by a press or two of the Return key.
Actually using the app may be a bit tricky if you’ve never done so before, but at least the question of how to open Terminal on Mac is easy to answer. Pay attention going forward!
1. Show or hide files and folders
One of the easier, and most useful, commands to use in conjunction with Mac command line is the one that reveals hidden files and folders in macOS:
defaults write com.apple.finder AppleShowAllFiles -bool TRUE
killall Finder
Now you can edit and delete files that were previously inaccessible. When you want to hide these files again, just change the TRUE above to FALSE and repeat the process.
2. Duplicate files between folders
Rather than dragging and dropping or copying files between folders, you can use Ditto Terminal command on Mac to achieve the same result:
Ditto [original folder] [new folder]
If you have folders in different locations with the same name, you can type -v after Ditto to display each item’s file path using the verbose mode of Mac Terminal.
3. Change default screenshot settings
Tired of clogging up your desktop with screenshots? Terminal on Mac offers an easy fix for that with the option to set a new location for screenshots to be saved. Just enter the following:
defaults write com.apple.screencapture location ~/your/desired/location
killall SystemUIServer
You can also change the default file format (PNG) if you want to generate screenshots as JPEGs or PDFs instead:
defaults write com.apple.screencapture type jpg
4. Improve the screenshot process
If you take a lot of screenshots on your Mac, you might have noticed that it automatically adds a drop shadow to screenshotted windows. If you’d prefer to turn these shadows off, you can do so with the following Mac commands:
$ defaults write com.apple.screencapture disable-shadow -bool TRUE
killall SystemUIServer
To further customize how screenshots appear on your Mac, you could look at CleanShot. This app allows you to capture your Mac’s screen without the distraction of desktop icons, set custom wallpapers on the background, and annotate or blur certain parts of the image.
After taking a screenshot with CleanShot, a small popup window allows you to tweak the appearance of your capture — such as adding shapes, text, or pixelating parts of the image — before you share it anywhere using a layout similar to the simple and intuitive actions in Preview.
5. Download files without using your browser
The art of downloading files without using a web browser is familiar to any millennials who risked malware and viruses to download their favorite tracks from Limewire or Kazaa, but may be unheard of to others.
A nifty Mac command line trick exists for downloading files without using your web browser if you already know the location of the file. The command is as follows:
cd ~/Downloads/
curl -O http://website.com/folder/file...
The first part is a crash course in how to change directory in Terminal, as that’s what the cd stands for. So by re-reading the example above, you can see that the file will appear in your Downloads folder when it’s finished downloading.
Mac Terminal Commands Cheat Sheet
6. Keep your Mac awake
Overriding your Mac’s default sleep settings (available via System Preferences ➙ Energy Saver) is a breeze using one of Terminal’s more humorous Mac commands. Apparently, like so many people out there, Macs run on coffee:
caffeinate -u -t [number of seconds to remain active]
If you’d rather not launch Terminal every time you need to keep your Mac awake, there’s an app out there called Lungo that lives in your menu bar and builds on the coffee theme. Just select the cup icon in the top right corner of your screen and you can keep your Mac awake for 10 minutes, 30 minutes, 1 hour, 4 hours, or indefinitely with a single click.
7. View the contents of any folder or file
If one of your files gets corrupted, or you suspect there’s a hidden message tucked away somewhere inside its package, you can use the Terminal window to see some details about it:
cat ~/file/path/here
The command will throw out a bunch of indecipherable nonsense if you try to use it on something like an image or an audio file, but it could be a lifesaver when recovering text from a corrupted Word document, for example.
8. Hide inactive apps in Dock and dull hidden ones
Accruing more and more apps in your Dock is pretty much par for the course when you use a Mac for any significant length of time. So a good-to-know Terminal command here is the one that makes your Dock embrace a minimal approach by showing only active apps:
defaults write com.apple.dock static-only -bool TRUE
Best Terminal Emulator Mac
killall Dock
If you want to take this process even further, you can dim apps that aren’t visible on your monitor(s):
defaults write com.apple.Dock showhidden -bool TRUE
killall Dock
Another easier option for those with the cluttered Dock is to check out uBar, a simple and minimal replacement. Instead of a long line of icons, you can now have a highly customizable bar that allows you to devote more space to the apps that matter most.
You can use uBar to preview, group, quit, or close apps and windows, without the need to open them first, across multiple monitors. It’s an altogether less distracting option for those who find the default Dock a bit cluttered or unpredictable.
Best Terminal for Mac alternatives
Mac Os Terminal Alternatives
If you simply can’t get to grips with how to open Terminal on Mac or get comfortable with all of its ins and outs, you may want to investigate an app like MacPilot.
Terminal For Mac Os
Get a perfect Terminal alternative
Install MacPilot, an appealing tool that will replace Terminal on your Mac. Over 1000 hidden macOS features and ease of use.
MacPilot grants access to more than 1,000 hidden features in macOS using UNIX without requiring that you learn any complicated commands. Instead, it offers users a Finder-esque window that groups tweaks by both application and function.
In most cases, enabling or disabling features with MacPilot is as simple as checking or unchecking the relevant boxes. You can also explore content across your disks using a File Browser that includes hidden files and detailed information about all available items.
The range of System Tools, reference guides, and secret tricks offered by MacPilot is a powerful alternative to Terminal for those who would rather avoid struggling with commands.
Why the Terminal window still matters
Try to wax lyrical about the benefits of Mac commands with fellow Apple users and there’s a good chance you’ll be met with them asking “what is a Terminal?” The fact is, this app isn’t something that the average Mac user ever bothers much with.
As you can see from the list of useful commands above, neglecting to use Terminal on Mac or an app like MacPilot means never seeing everything that your laptop or desktop is capable of.
Top Terminal For Mac
One of many great things about using Mac Terminal commands is that, should you make a mistake, you can usually undo whatever you’ve done just by changing TRUE to FALSE and running the command again or simply changing the location or setting back to what it was before.
It’s true that Mac Terminal has a steep learning curve if you’re not used to its “language” but, whether or not you take the easier route with MacPilot, you can still try some of the cool tricks Terminal allows. You can play games, for example, by doing the following:
Open a Terminal window and type emacs then press Enter
With GNU Emacs selected, hit Escape
On the next screen, type x then tetris, pong or snake and press Enter
The most interesting example of a hidden Mac Terminal trick? That has to be the option to watch an ASCII version of the entire movie Star Wars:
telnet towel.blinkenlights.nl
Grab some popcorn and enjoy!
Best of all, the apps mentioned throughout this article: CleanShot, Lungo, uBar, MacPilot — are all available for a free 7-day trial with Setapp, a platform for more than 150 apps to extend the possibilities of your Mac. See the best your Mac can do.
Meantime, prepare for all the awesome things you can do with Setapp.
Best Terminals For Mac
Read onSign Up