+5 votes
244 views
How to open terminal on Mac OS

in Mac by (551k points)
reopened | 244 views

1 Answer

+3 votes
Best answer

1. How to open Mac OS terminal from Finder
2. How to open terminal on Mac OS from Launchpad
3. How to open terminal on Mac OS from Spotlight
4. How to open terminal on Mac OS from Automator
5. How to open terminal with keyboard in Mac OS
6. Terminal analysis in Mac OS

The updates of the operating systems are generally always well received by the users who are looking forward to the improvements and news included in them. However, these updates can influence the functions or ways of performing tasks on the computer, so it is advisable to always be up to date ..

When using a new operating system we are always waiting for news to be present or that new features have been added, in the case of macOS Mojave or the new macOS Catalina version we can see how various features are introduced that will make the experience of I use something really innovative, if we want to know in detail how to install and use macOS Catalina we can visit the following link.

One of the most common elements in macOS is the terminal , for many it may seem somewhat of little use, but really the terminal is far beyond a simple console where commands are executed since through this tutorial we will learn not only the various ways to access this but what is its real and advanced use in macOS..

The first thing we leave you is to be able to see on video all the possible ways of being able to open the terminal on Mac systems. Below you have them in detail in text and also some suggestions on commands that will come in handy.

To keep up, remember to subscribe to our YouTube channel! SUBSCRIBE


1. How to open Mac OS terminal from Finder


The Finder or macOS Finder is one of the most practical methods to access the terminal and execute its multiple tasks.

By default the terminal is preinstalled in the "Utilities" folder so that to access it we have the following options:

Access using the Go menu
For this, we select "Finder" and go to the "Go" menu and there we select the "Utilities" route:

image

The following window will be displayed where we will locate the terminal and from there we can execute it:

image

Note
To directly access the Utilities window we can use the key combination:

+ Comando + U Shift + Command + U


Access using the File menu
In some cases it is possible that the terminal of the Utilities folder has been moved to the Applications library, if this is the case, we select the Finder and go to the File menu and there we choose the New Finder window line or we can use the key combination Command + N:

+ N ⌘ + N

image

In the displayed window we select the Applications category on the left side side and there we locate the terminal:

image


2. How to open terminal on Mac OS from Launchpad


The launchpad is a macOS launcher through which you have access to all the elements of the Applications library, its icon is represented by a rocket in the dock, just click on it and in the reflected window locate the folder Others:

image

Clicking on it will display the following where we will locate the terminal and click on it for its execution:

image


3. How to open terminal on Mac OS from Spotlight


Spotlight has been developed as a universal search engine for macOS systems because thanks to it, simply enter the desired text and start launching suggestions for both applications and files.

To use Spotlight in macOS, we will click on the magnifying glass icon located in the upper right corner and in the pop-up window we will enter terminal and there we select the respective utility:

image


4. How to open terminal on Mac OS from Automator


Automator is a task automation application in macOS with which we can create numerous actions to facilitate the life and management tasks on the equipment and its components.
Step 1

To access Automator we can use one of the following alternatives:
  • Using spotlight
  • On the route Go / Applications / Automator
  • Using the key combination Shift + Command + A and there select Automator
  • From the launchpad in the Other folder select Automator

image

Step 2

The following window will be displayed where we will click on the New Document button:

image

Step 3

The following wizard will be displayed where we will activate the Workflow option and click on the Select button:

image

Step 4

By clicking there, we now go to the left side column and in the Libraries section we click on Utilities and in the central panel we select the Open application line: image
Step 5

First, click on the field Workflow receives in the upper right and in the available options select No input data:

image

Step 6

Now, we drag the option Open application to the right side and click on the drop-down field to select Terminal: image
Step 7

Once this is done, we go to the File / Save menu and assign the desired name to the created workflow. Click on the Save button to apply the changes.

image

Step 8

The next step is to access System Preferences where we will see the following:

image

Step 9

There we select the Keyboard category and we will go to the Quick Functions tab, there we select the Services category and we will locate our created flow:

image

Step 10

When selecting it, it will be possible to add some keyboard shortcut and for this we click on the Add Quick Function field and press the desired keys to be assigned:

image

From now on, we can use this combination to access and open the terminal in macOS..


5. How to open terminal with keyboard in Mac OS


For this option, in the first place, we have used Automator which creates the own combination of keys, but if we do not want to use this option, we can use the Command + Space keys so that the Spotlight utility is deployed and there look for the terminal:

image

Now, when we access the terminal it will be possible to manage and administer various services and system parameters from there.

An example that the terminal is much more than just orders, just run the following line:

 ruby -e 'C = `stty size`.scan (/ \ d + /) [1] .to_i; S = [" 2743 ".to_i (16)]. pack (" U * "); a = {}; puts "\ 033 [2J"; loop {a [rand (C)] = 0; a.each {| x, or |; a [x] + = 1; print "\ 033 [# {o}; # { x} H \ 033 [# {a [x]}; # {x} H # {S} \ 033 [0; 0H "}; $ stdout.flush; sleep 0.1} ' 
Pressing Enter we will see snow effect on our console:

image

Now that we have seen how to access the console in macOS, we will analyze its context a bit.


6. Terminal analysis in Mac OS


The terminal console is made up of certain elements that are:
Command line
It refers to the real line where the command or order to execute is written

Console
It covers both the command line and the output of the previous commands that have been executed

Terminal
It is a real interface of the console itself, it has been developed as a program through which it interacts with the console.

Prompt
It is the beginning of the command line and by default it ends at the $ sign

image

Through the terminal commands are executed that display information of something specific or an order is executed. We must be careful with the commands executed as we can affect other system values ​​and cause instability.

Available libraries
A practical way to know the available libraries, as well as their permissions is to execute the following:
 ls -l ~ 
The result will be as follows:

image

We can see the details of each macOS library, in this case the ls command allows us to list a series of attributes as the command is executed, the -l (long) parameter, is responsible for listing the names of the files and the ~ parameter is an abbreviated name to select the home folder of the current user.


In macOS we always work in a working directory, so if we do not know with certainty in which directory we are, we can use the pwd (print working directory) command to display this information:

image

Browse between directories
Another of the practical tasks to be carried out from the terminal is to navigate between directories, for this it is enough to use the cd command and enter the desired library like this:
 cd Documents (Access to Documents) cd Downloads (Access to Downloads) cd Movies (Access to Movies) 
To return to the home directory we execute:
 cd .. 

image

Help tools
The console has help tools that will be useful when we are not clear about the execution of any command, for this purpose the man parameter followed by the command will be useful and thus display both its description and its use options:
 man ls 

image

Useful terminal options
Mkdir
Create a new directory

Touch
Create a new empty file

cp
Copy a file

mv
Move a file

rm
Delete a file or directory

less
Display the contents of a file in a scroll buffer

Some other useful commands, either administration or are not:

Play in the end
To do this we must first know the version of emacs running:
 cd / usr / share / emacs /; ls 
Based on the result obtained, we display the available games with the following command:
 ls / usr / share / emacs / ”version_emacs” / lisp / play 

image

Get a folder with recently used applications
To do this we must execute the following:
 defaults write com.apple.dock persistent-others -array-add '{"tile-data" = {"list-type" = 1; }; "tile-type" = "recents-tile"; } '; killall dock 
Show hidden files
For security, many elements are hidden from the user, if we wish to have access to them we execute:
 defaults write com.apple.finder AppleShowAll Files TRUE; killall finder 
See the resource consumption of our apps
Ideal for a control over the hardware, for this we execute:
 sudo fs_usage 

We have been able to verify that we can open the Mac terminal in several ways. We can also see that the macOS terminal is much more of a simple utility to execute orders, since with it we can perform various administrative tasks in a simple, practical and with the best results. Knowing all the forms will make it more than simple to be able to open the terminal window in multiple ways on your Mac computer.

Remember that you can learn many more ways to use commands in Mac terminal very useful as we put below.


by (3.5m points)
edited

Related questions

+5 votes
1 answer
asked Sep 20, 2019 in Mac by backtothefuture (551k points) | 330 views
+3 votes
1 answer
asked Jan 25, 2021 in Mac by backtothefuture (551k points) | 187 views
+4 votes
1 answer
asked Mar 29, 2021 in Mac by backtothefuture (551k points) | 125 views
+5 votes
1 answer
asked Oct 8, 2020 in Mac by backtothefuture (551k points) | 249 views
+3 votes
1 answer
asked Sep 7, 2020 in Mac by backtothefuture (551k points) | 890 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,632 questions
10,764 answers
510 comments
3 users