The Terminal app is your true friend in the macOS command-line world. It offers an interface with a shell that interprets your commands and then brings them to life.
When you open the application on Mac Terminal, then you see a practically empty window with two lines of text. The first contains the date and time of your last login.
Last login: Wed Apr 3 13:08:53 on console
The second line – this, in fact, is the command line for work. The rectangular box at the end is your cursor.
You must enter commands into the Terminal immediately after the second line, which has the form:
Here is what these elements mean:
The first part (before the colon) is the name of your Mac. The colon is just a visual delimiter.
The second part begins with a tilde (~). It indicates that you are in the home directory and uses the short username.
Finally, a dollar sign notifies you that you are logged in as a user without root rights.
♥ BY TOPIC: Terminal on Mac (macOS): what are these, commands, syntax – an understandable guide for beginners.
How to resize the default terminal window
The terminal is not perfect. The text of the commands is typed in small print, it is difficult to analyze, and the cursor is sometimes not easy to find. Yes, the window size can be increased – but macOS will “forget” your settings immediately after you close the application.
To make a window Terminal more convenient click ⌘Cmd + I – open Inspector (or in the menu bar at the top with the terminal open, select Shell → Show Inspector) In section The properties indicate the values that are more convenient for you in points Columns and Linesand then confirm with Return (Enter).
♥ BY TOPIC: How to open a complete list of Terminal commands in macOS with a description.
How to change the background in the Terminal window
In the same Inspectorin the tab Profile available themes will be indicated – they can change the appearance Terminal beyond recognition.
For example, try the Homebrew option – and feel like a Windows hacker! :).
A preview of all the themes is in the settings. To go to them, select in the menu bar Terminal → Settings → Profiles.
♥ BY TOPIC: How to check and fix hard disk errors (HDD, SDD) on Mac.
How to change the text in the Terminal
The creators of the Terminal built into the application the necessary tools to configure the system text “for themselves”.
For example, to change the font and – most importantly! – its size is enough to press a button Edit in the settings section Text.
There are options for turning bold on or off, using smoother fonts, and changing the color (!) Of text.
What is there – you can even change the cursor! Available options are block, underline, or vertical strip. It is also up to you to decide whether the cursor should blink and what color it should be.
Finally, if desired, the window transparency also changes. Terminal. As a result, it is very easy to “hang” a transparent window directly above the web page and enter commands as you read some instructions.
♥ BY TOPIC: Mac for Dummies: 30 helpful macOS tips for beginners.
Terminal window attributes
They include name, size, scrolling limit and the like. Remember that the settings you choose apply only to the profile, not to everything The terminal generally. In order to change the name of the window, simply enter the desired text in the corresponding line (Settings → Window → Title)
♥ BY TOPIC: How to change the icon of an application, folder or file on Mac (macOS).
Fine tuning takes place here Terminal. You can choose a command to start immediately after start (for example, launch an “third-party shell” automatically).
Useful option – ask Terminal issue warnings before closing. To do this, open Profiles → Shell, and in paragraph Ask before closing select option Is always.
♥ BY TOPIC: “The program cannot be opened because its author …” is a bug on the Mac. How to get around.
Working with window groups in the Terminal
Did you know that in Terminal can you open several working windows at once, place them on the desktop as you like, and then never lose this session? A special function is responsible for this. Window groups. With its help, each “window” gets its own process, attributes and position on the desktop.
Before creating a group of windows, you will need:
- Arrange the desired windows on your desktop the way you want.
- Customize the attributes, size and shape of each window.
- Run all the necessary commands.
Everything is ready? Now open Window → Save Windows as a Group. Next, enter the name of the new group, check the box next to Used a group of windows when starting the Terminal and press Save.
To restore your group, select the same section. Window → Open Window Group. To import or export such groups, select Settings → Window Groups and click on the gear icon at the bottom of the screen.
♥ BY TOPIC: CheatSheet, or how to see all the hot keys of any program on Mac (macOS).
Set default shell
Originally running on macOS bash. But there are others – bin / bash, / bin / csh, / bin / zsh, / bin / ksh etc.
Unix enthusiasts love working with zsh (or Z) because it has many functions and support for dozens of different plugins.
If you are a beginner, the default bash shell will be more than enough.
♥ BY TOPIC: Features of the ⌥Option (Alt) key on Mac (macOS) that you might not be aware of.
How do you know which shell you are using?
Enter the command:
♥ BY TOPIC: How to configure macOS without Terminal in detail: 4 useful utilities.
Try alternatives to the Terminal
Terminal is a system command line application for many decades. Today, he, like many other Apple developments, is trying to maintain a balance between accessibility for new users and maximum opportunities for professionals. If you need something more, or just want something else, try HyperTerm (free), Cathode (379 rubles) or iTerm (free).