Many of us interact with Apple products daily—whether through a MacBook, iMac, iPhone, or iPad. Behind these sleek devices lies Apple’s family of operating systems, with macOS serving as the foundation for desktop and laptop computers. Though Apple’s ecosystem also includes iOS, iPadOS, tvOS, and watchOS, much of its DNA traces back to macOS (originally released as Mac OS X).
So, what exactly is macOS, and why is it such an important operating system? Let’s explore its history, use cases, architecture, and core components to better understand how it works and why it has endured as one of the most influential OS platforms.
What Is macOS?
At its simplest, macOS is the operating system that powers Apple’s desktop and laptop computers. Like Windows and Linux, it is responsible for managing the hardware, running applications, and providing a user interface that allows people to interact with the computer efficiently.
Today, macOS is the second most widely used desktop operating system after Microsoft Windows. Its presence is felt not only in homes but also in businesses, design studios, universities, and the creative industry.
A Brief History of macOS
The journey of macOS has spanned decades and multiple rebrands:
- Classic Mac OS (1984 – 2001)
- The original Mac OS debuted with the first Macintosh in 1984.
- It introduced the graphical user interface (GUI) to a broad consumer audience, influencing the design of operating systems for years to come.
- Mac OS X (2001 – 2012)
- A complete overhaul built on a Unix foundation.
- Brought stability, security, and modern features.
- Versions were named after big cats: Cheetah, Puma, Jaguar, Panther, Tiger, Leopard, Snow Leopard, Lion, and Mountain Lion.
- OS X (2012 – 2016)
- Apple shortened the name to OS X.
- Versions were named after California landmarks: Mavericks, Yosemite, El Capitan.
- macOS (2016 – Present)
- Rebranded to align with Apple’s ecosystem naming (macOS, iOS, watchOS, tvOS).
- Versions include Sierra, High Sierra, Mojave, Catalina, Big Sur, Monterey, Ventura, and the latest releases.
Where macOS Is Used
macOS enjoys a strong reputation in several industries and user groups:
- Everyday use – For home and office users, macOS provides a smooth, user-friendly experience with native apps like Safari, Mail, and Finder.
- Business environments – Increasingly adopted in companies for its stability, security, and integration with cloud services.
- Creative industries – Favored by graphic designers, video editors, musicians, and developers thanks to optimized software such as Final Cut Pro, Logic Pro, and Adobe Creative Suite.
- Education – MacBooks and iMacs are common in classrooms and universities due to their long lifespan and reliability.
The Architecture of macOS
macOS is not just a pretty interface—it has a robust architecture under the hood:
- Darwin – The Unix-based core of macOS, combining the XNU kernel with essential utilities. Darwin forms the foundation that ensures performance, security, and compatibility.
- Kernel (XNU) – Handles hardware interactions, memory management, and process control.
- Core Services – Frameworks that provide essential functionality such as networking, file handling, and preferences.
- Graphics & Media Layers – Power the graphical interface, animations, and multimedia capabilities.
- Aqua User Interface – Apple’s distinct visual design, with consistent typography, animations, and controls.
This layered architecture allows macOS to deliver stability, scalability, and security while maintaining Apple’s hallmark user experience.
Core Components of macOS
Some of the standout components include:
- Finder – The file manager and navigation tool, central to interacting with the system.
- Dock – Quick access to favorite and running applications.
- System Preferences (now System Settings) – Where users configure hardware, network, and personalization options.
- Terminal – Provides access to the Unix command line, a vital tool for power users and developers.
- App Store – Centralized platform for downloading applications securely.
Conclusion: Why macOS Matters
macOS represents a blend of design elegance and Unix power, making it a favorite among both creative professionals and technical users. It balances user-friendliness with advanced functionality, offering a system that is reliable, secure, and tightly integrated with Apple’s hardware and broader ecosystem.
For cybersecurity professionals, system administrators, and developers, macOS offers a powerful environment—especially given its Unix underpinnings. Understanding macOS is not only valuable for everyday users but also essential for those working in security and IT.
What BSD derivative is the basis of the macOS operating system?
Apple’s operating system is built on top of an open-source core that blends BSD components with its own kernel layer. This foundation provides the Unix-like environment, stability, and POSIX compliance that macOS depends on. That core system is known as Darwin, which underlies everything from process handling to filesystem behavior.
What provides the desktop experience and file management capabilities within macOS?
The graphical environment in macOS relies on a core component that manages windows, icons, and user interaction. It is responsible for browsing files, launching applications, and showing the familiar desktop interface.
This component is called Finder, which provides the main user-facing experience in macOS.
Graphical User Interface
MacOS is known for its sleek design and user-friendly experience. At the heart of this lies its Graphical User Interface (GUI) — the visual environment that allows you to interact with your system efficiently. Whether you’re a new Mac user or someone looking to sharpen your productivity, understanding the core GUI components is key.
Let’s break down the most important pieces of the macOS interface, what they do, and how you can leverage them to boost your workflow.
1. The Apple Menu
The Apple Menu, located in the top-left corner of the screen, is the main entry point for system-wide actions. Think of it as the “control hub” for your Mac.
- System Settings: Quickly adjust preferences such as Wi-Fi, Bluetooth, and display.
- Sleep, Restart, and Shut Down: Manage your Mac’s power state.
- Lock Screen / Log Out: Secure your session when stepping away.
- Recent Items: Access recently used apps, documents, and servers.
2. Finder
Finder is the backbone of your file management experience in macOS. It provides the desktop environment and helps you organize, locate, and launch files and applications.
- Desktop & Windows: The starting point for file navigation.
- Sidebar Shortcuts: Quick access to Documents, Downloads, Applications, and external drives.
- Search Functionality: Integrated with Spotlight for precise results.
3. Spotlight
Spotlight is your search and quick action assistant. Press Cmd + Space to launch it instantly.
- Search the Filesystem: Find apps, documents, photos, and emails in seconds.
- iCloud Integration: Pull results from your connected Apple ecosystem.
- Quick Calculations & Conversions: Type in “45*12” or “100 USD in EUR” and get answers instantly.
- Definitions & Web Results: Get dictionary meanings or quick access to web searches.
4. The Dock
By default, the Dock sits at the bottom of your screen, though it can be moved to the sides. It acts as your shortcut tray and app manager.
- Pinned Apps: Place your most-used applications here.
- Active Apps: Open apps display with a small dot indicator beneath them.
- Trash Bin: Conveniently located at the far right for deleting or recovering files.
5. Launchpad
Think of Launchpad as your application grid, similar to the home screen on an iPhone or iPad.
- Access it via the Dock or a trackpad gesture (pinch with four fingers).
- Search or browse visually through all installed apps.
- Organize apps into folders for quick access.
6. Control Center
The Control Center consolidates system toggles and settings into one quick-access menu.
- Network Settings: Wi-Fi, Bluetooth, and AirDrop.
- Sound & Display: Adjust volume, brightness, and AirPlay.
- Do Not Disturb & Notifications: Manage focus and alert preferences.
- Battery & Accessibility: Monitor power usage and toggle assistive features.
Find the numeric version running on your machine and submit it as the answer.
The question is asking you to look up the macOS version number on the machine you are using (for example: 13.3.1, 12.6, etc.). Since I don’t have access to your machine, you need to run one command and submit the number it prints.
Navigating Around The OS
At first glance, navigating macOS may feel straightforward — click icons, open folders, launch apps. But beneath its clean interface, macOS hides a wealth of shortcuts, tricks, and productivity boosters that can transform the way you work. Once you know these features, you’ll move through files, folders, and apps with speed and confidence.
Navigating Files and Folders
1. Finder Shortcuts
Finder is your gateway to the macOS file system. A few keyboard tricks can save you clicks:
Cmd + N→ Open a new Finder window.Cmd + T→ Add a new Finder tab (like a web browser).Cmd + Shift + G→ Jump directly to any folder path (perfect for hidden directories like/Library).
Pro Tip: Use Column View (Cmd + 3) for fast navigation through deeply nested folders.
2. Quick Look
Want to peek inside a file without opening it?
- Select a file → Press the Spacebar → Instantly preview it.
Works with PDFs, images, videos, text files, and more.
3. Tags and Favorites
- Right-click a file/folder → Assign a color-coded tag.
- Drag frequently used folders to the Finder sidebar for one-click access.
Navigating Apps
1. Spotlight as an App Launcher
Forget clicking through Launchpad or Finder. Just hit:
Cmd + Space→ Type app name → Press Enter.
Spotlight finds apps faster than browsing.
2. Switching Between Apps
Cmd + Tab→ Cycle between open apps.- Hold
Cmdand tapTabrepeatedly to move through the list. - Use
Cmd + Qwhile holdingCmdto quit an app directly.
3. Mission Control
Mission Control gives a bird’s-eye view of all open windows.
- Swipe up with three/four fingers on the trackpad.
- Or press
Control + Up Arrow. - Great for dragging windows into different desktops/spaces.
Launchpad and Dock Tricks
1. Launchpad
Launchpad is like the iPhone home screen for your Mac.
- Pinch with four fingers on the trackpad.
- Organize apps into folders by dragging one onto another.
- Search instantly by typing when Launchpad is open.
2. Dock Shortcuts
- Right-click an app in the Dock → Select Options → Keep in Dock for quick access.
- Drag files onto app icons in the Dock to open them directly.
- Hide/show the Dock quickly with
Cmd + Option + D.
Download the above file and double click on it to unzip it. The extracted folder may appear empty, but in reality it has a hidden file with the flag. Can you find the flag?
Download the file and extract it uzing unzip. Enter in the folder flag and list the content. The file is hidden, so you need to use the parameter -la
(suricato㉿kali)-[~/Documentos/HTD/Exercicios/flag]
$ ls
(suricato㉿kali)-[~/Documentos/HTD/Exercicios/flag]
$ ls -la
total 12
drwxr-xr-x 2 suricato suricato 4096 dez 9 2022 .
drwxrwxr-x 3 suricato suricato 4096 set 24 16:08 ..
-rw-r--r-- 1 suricato suricato 20 dez 9 2022 .flag.txt
Now use cat to get the flag
cat .flag.txt
[REDACTED]
System Hierarchy
The macOS file system can be viewed from multiple perspectives. While its overall structure is similar to that of traditional Unix and Linux systems, it also introduces its own layout with User, Local, and System directories. In this section, we’ll explore these areas to understand where important files are located on a macOS machine.
Note: Since macOS is built on a Unix foundation, many concepts and commands from the Linux Fundamentals module are also valid here, although a few may differ slightly in syntax. This module will not repeat the Linux basics already discussed. Instead, it focuses on macOS-specific details. For a complete grasp of both environments, it’s recommended that you also review the Linux Fundamentals module.
Where are the Applications related to the system stored at?
On macOS, certain applications are bundled directly with the core operating environment and are kept separate from user-installed apps. These core tools and utilities are placed in a protected location so they cannot be easily modified or removed. They reside in /System/Applications, where the system maintains essential default programs.
File and Directory Permissions
Since macOS is built upon a Unix foundation, working with file and folder permissions is relatively intuitive. The operating system inherits the structured way that Unix handles access control, making it easier for us to understand who can read, modify, or execute a file. Permissions play a critical role in security and system stability, ensuring that only the right users or processes can interact with certain files.
Before we dive deeper into how macOS specifically displays and manages permissions, it’s important to take a step back and revisit the Unix/Linux permission model. This refresher will help us recall how ownership, groups, and permission bits work, as well as how they are typically applied across different types of files and directories. Having this foundation in mind will make it much easier to see how macOS implements similar rules, while also adding a few of its own variations.
If a file has a permission set of “rw-rw-rw-” applied, what would that equal in Octal format? (number only)
rw-rw-rw = [REDACTED]
Application Management
We often need to extend an operating system by adding new tools and applications that make our work easier. However, that flexibility also introduces risk: installing software can accidentally bring unwanted programs — from annoying adware to dangerous malware. In this section we’ll examine the common ways to install apps on macOS, explain the trade-offs and security implications of each method, and show how to configure a macOS machine for penetration testing safely and responsibly.
Search ‘homebrew’ for ‘tmux’, and one of the results ends in ‘nator’. What is the full name of this package?
To manage complex terminal session layouts more easily, users often rely on a helper that builds tmux environments from templates. This tool allows predefined windows and panes to launch automatically with specific commands already running. The package that provides this functionality is tmuxinator.
MacOS Terminal
macOS is built on top of the Darwin kernel, which itself is derived from the original Unix design. Because of this, the operating system shares much of its DNA with Linux distributions. The shell and terminal environment will feel very familiar to anyone with prior Linux experience, although Apple has added its own layers of functionality and design. Over time, macOS has evolved far beyond the early Darwin system, but the Unix foundation remains the backbone that makes it powerful and flexible.
For penetration testers, developers, and system administrators, this means that most commands, scripts, and workflows from Linux can be carried over with minimal adjustment. At the same time, macOS introduces a few unique behaviors and tools that are worth knowing.
macOS vs. Linux Terminals
At first glance, the macOS Terminal behaves much like its Linux counterpart. Both are grounded in Unix design principles, which means the majority of day-to-day commands will work the same way. However, there are some key distinctions:
- Certification: macOS is an officially certified UNIX operating system, while Linux is technically “Unix-like.” Linux is based on Minix (a project designed to reimplement Unix without using proprietary code). This difference explains why macOS sometimes behaves more strictly to Unix standards.
- Command Compatibility: Since both systems implement POSIX standards, many commands overlap. Bash scripts written with the
#!/bin/shshebang and POSIX syntax will typically run on both platforms without modification. This is why widely used pentesting tools and scripts—such as nmapAutomator or linPEAS—are written to be POSIX compliant, ensuring maximum compatibility. - Subtle Differences: While the majority of commands function identically, you may occasionally notice minor discrepancies in syntax or available flags depending on whether the tool was compiled for Linux or macOS. Knowing these nuances helps avoid frustration when porting scripts or workflows.
For a deeper dive, you can consult the IEEE Std 1003.1-2017 specification, which lists POSIX utilities, built-ins, and their accepted parameters. This is the standard reference for what commands are guaranteed to work across Unix-compliant systems.
Shell Extensions and Customization
Beyond the base functionality, macOS allows you to extend your shell with popular frameworks and plugins. For example:
- Zsh: Since macOS Catalina, Zsh replaced Bash as the default shell, offering enhanced features and better customization.
- Oh My Zsh: A powerful open-source framework for managing Zsh configurations, providing themes, plugins, and shortcuts that streamline workflows.
- Custom scripts: You can create or import scripts for penetration testing, automation, or productivity, leveraging POSIX compatibility to ensure portability.
Pro Tip: The open Command
One macOS-specific feature worth mastering is the open command. With it, you can launch any file using its default application straight from the terminal. For example:
open report.pdf→ opens a PDF in Previewopen ~/Pictures→ opens the Pictures folder in Finderopen https://example.com→ opens a URL in your default browser
This simple command can save time when switching between the terminal and the graphical interface.
Making Your Terminal “Awesome”
Finally, no macOS shell setup is complete without a bit of personalization. By configuring your shell with a custom theme, useful plugins, and color schemes, you can turn the default terminal into a highly efficient workspace. Later in this module, we’ll walk through the process of setting up an awesome-looking macOS terminal that combines style with functionality—perfect for pentesting, development, or just everyday use.
Read the zsh configuration shown in the section above to find what command is mapped to ‘ll’. Submit the command as the answer.
The alias in that shell setup expands a short, convenient sequence into a longer listing format. It displays files in a detailed view, including permissions, ownership, and size information. The command mapped to it is ls -l.
