1.8 Explain common features and tools of the macOS/desktop operating system
📘CompTIA A+ Core 2 (220-1202)
The Terminal is a powerful tool in macOS that lets users control the computer using text commands instead of clicking icons. Think of it as a “command line interface” (CLI) for macOS. Many tasks that you do with the mouse in Finder can also be done with Terminal—but often faster and more efficiently, especially for IT professionals.
1. Opening Terminal
- Terminal is found in Applications → Utilities → Terminal.
- You can also search for it using Spotlight (press
Cmd + Spaceand type “Terminal”).
When you open Terminal, you’ll see a window with a prompt like this:
MacBook:~ user$
Here:
MacBook= the name of your computer~= your current folder (home folder)user= your username$= indicates the system is ready for a command
2. Why Terminal is important in IT
Terminal is widely used by IT professionals for tasks such as:
- Managing files and folders quickly
- Checking system information
- Controlling network settings
- Installing or updating software
- Running scripts and automation tasks
For the CompTIA A+ exam, you mainly need to know the basic commands and their purposes.
3. Basic Terminal Commands
Here are some essential commands to know for the exam:
| Command | Purpose | Example |
|---|---|---|
pwd | Shows your current folder path | pwd → /Users/username |
ls | Lists files and folders in the current directory | ls → shows all files in home folder |
cd | Change directory (move to another folder) | cd Documents → goes to Documents folder |
mkdir | Create a new folder | mkdir Projects → creates a folder named Projects |
rm | Delete files | rm file.txt → deletes file.txt |
rmdir | Delete empty folders | rmdir OldFolder → deletes OldFolder |
cp | Copy files/folders | cp file.txt backup.txt → copies file.txt to backup.txt |
mv | Move or rename files/folders | mv file.txt Documents/ → moves file.txt to Documents |
touch | Create a new empty file | touch notes.txt → creates notes.txt |
💡 Tip for the exam: Be careful with rm — it permanently deletes files, unlike Trash in Finder.
4. Viewing File Content
Sometimes, you need to see what’s inside a file without opening a program. Use:
cat file.txt→ shows the content of the fileless file.txt→ shows content one screen at a timehead file.txt→ shows the first 10 linestail file.txt→ shows the last 10 lines
These are useful for reading logs or configuration files in IT environments.
5. System and Network Commands
Terminal can also be used for checking system and network info:
| Command | Purpose |
|---|---|
top | Shows active processes and system resource usage |
df | Shows disk space usage |
du | Shows folder size |
ifconfig | Shows network interfaces and IP addresses |
ping | Checks connectivity to another computer |
traceroute | Tracks the path to a remote server |
whoami | Shows current logged-in user |
These commands are often used by IT technicians for troubleshooting.
6. Using Sudo (Superuser)
Some commands need administrator privileges. Terminal uses sudo for this:
sudo command
- Example:
sudo shutdown -r now→ restarts the Mac immediately - The system will ask for your password before running the command.
⚠️ Only use sudo when necessary — wrong commands can break the system.
7. Command Shortcuts and Tips
- Tab key → auto-completes file/folder names
- Up/Down arrows → scroll through previous commands
Ctrl + C→ stops a running commandCtrl + L→ clears the screen
These shortcuts make working in Terminal faster and more efficient.
8. Why IT Professionals Prefer Terminal
- Automation: Scripts can run repetitive tasks automatically.
- Remote management: Terminal works with SSH to control remote systems.
- Power: Commands can perform complex tasks that Finder cannot.
For the A+ exam, you only need to know basic file management, system info, and network commands, not advanced scripting.
✅ Key Points for the Exam
- Terminal is a CLI tool for macOS.
- Basic commands:
pwd,ls,cd,mkdir,rm,cp,mv,touch. - File content commands:
cat,less,head,tail. - System/network commands:
top,df,ifconfig,ping. - Use
sudofor commands requiring admin privileges. - Shortcuts like
Tab(autocomplete) andUp/Down(command history) help efficiency.
