macOS and Linux Basics
macOS and Linux Basics

Photo by Foysal Ahmed on Pexels
IT support professionals must work across multiple operating systems. macOS is common in creative and executive environments, while Linux powers servers, containers, and an increasing number of developer workstations.
macOS Architecture
macOS is Apple's desktop operating system, built on Unix (Darwin). Key characteristics:
Versions: macOS updates are free and named after California locations. Ventura (13), Sonoma (14), Sequoia (15). Apple supports the current version plus the previous two for security updates.
File System: APFS (Apple File System) since macOS 10.13. Supports snapshots, encryption, space sharing, and fast cloning. Replaced HFS+ which was used since 1998.
Security: System Integrity Protection (SIP) prevents modifications to system files. Gatekeeper checks app signatures. XProtect is built-in malware detection. T2/M-series chips provide Secure Enclave for encryption keys.
Package Management: macOS does not have a native package manager. Common options: Homebrew (brew install package), Mac App Store, and .dmg/.pkg installers.
macOS Troubleshooting
Safe Mode: Hold Shift during boot. Disables third-party extensions, clears caches, runs filesystem check. Useful for isolating startup issues.
Recovery Mode: Hold Cmd+R (Intel) or press and hold power button (Apple Silicon). Provides Disk Utility, reinstall macOS, and Terminal access.
Reset NVRAM/PRAM: Hold Option+Cmd+P+R during boot (Intel Macs). Clears firmware settings. Apple Silicon Macs do this automatically during a shutdown.
Reset SMC: System Management Controller controls power, battery, fans. Reset varies by model — check Apple's support site for specific steps.
Disk Utility: First Aid feature checks and repairs disk permissions and filesystem errors. Accessible from Recovery Mode for unbootable systems.
Activity Monitor: Equivalent to Windows Task Manager. Shows CPU, memory, energy, disk, and network usage by process.
Linux Fundamentals
Linux is open-source and comes in 'distributions' (distros). For IT support, you need to know the major families:
Debian/Ubuntu: Most popular desktop Linux. Ubuntu is the most common entry point. Uses APT package manager (apt install, apt update, apt upgrade). Debian is the stable base — Ubuntu adds user-friendly tools and newer packages.
Red Hat/CentOS/Fedora: Enterprise Linux family. Uses RPM/YUM/DNF package manager (dnf install, dnf update). Red Hat Enterprise Linux (RHEL) is commercial. CentOS was the free equivalent (now Rocky/Alma Linux). Fedora is the bleeding-edge upstream.
Arch: Rolling release, minimalist. For advanced users. pacman package manager. Arch Linux is not recommended for production but is excellent for learning Linux internals.
SUSE/openSUSE: European enterprise distribution. Uses Zypper package manager. YaST is the configuration tool. Common in European enterprises.
Essential Linux Commands
File Operations:
• ls -la — list all files with permissions
• cd /path — change directory
• cp source dest — copy files
• mv source dest — move/rename files
• rm -rf directory — recursively delete (DANGEROUS)
• mkdir dirname — create directory
• chmod 755 file — set permissions (rwxr-xr-x)
• chown user:group file — change ownership
System Information:
• uname -a — kernel version and architecture
• df -h — disk space usage
• free -h — RAM usage
• top or htop — process monitor
• uptime — how long the system has been running
• dmesg — kernel messages (hardware info)
Networking:
• ip addr — show network interfaces (replaced ifconfig)
• ping host — test connectivity
• ss -tulpn — show open ports (replaced netstat)
• curl -I url — fetch HTTP headers
• ssh user@host — remote login
• scp file user@host:/path — secure copy
Package Management:
• apt update && apt upgrade — Ubuntu/Debian
• dnf update && dnf upgrade — Fedora/RHEL
• pacman -Syu — Arch
Service Management (systemd):
• systemctl status nginx — check service status
• systemctl start nginx — start service
• systemctl enable nginx — start on boot
• journalctl -u nginx — view service logs
• journalctl -xe — recent system errors
Step-by-Step: Managing Services in Linux
Step 1: Check if a service is running: systemctl status apache2
Step 2: If not running, start it: sudo systemctl start apache2
Step 3: Make it start on boot: sudo systemctl enable apache2
Step 4: Verify it's listening on port 80: sudo ss -tulpn | grep :80
Step 5: Check the logs for errors: sudo journalctl -u apache2 --since '1 hour ago'
Step 6: Restart after config changes: sudo systemctl restart apache2
Step 7: Verify configuration is valid: sudo apachectl configtest
Free Tools for Cross-Platform Support
VirtualBox: Free VM software for running Linux on Windows/macOS for learning.
WSL2: Windows Subsystem for Linux. Run Ubuntu, Debian, or Kali directly on Windows 11. No dual-boot needed.
Homebrew: Package manager for macOS (and Linux). Install development tools and utilities easily.
SSH: Available on all platforms. Windows 11 has built-in OpenSSH client. Connect to any server with: ssh user@hostname
Key Takeaways
• macOS is Unix-based — many Linux commands work (ls, cd, grep, find, ssh)
• Safe Mode and Recovery Mode are the primary macOS troubleshooting tools
• Ubuntu/Debian uses apt, RHEL/Fedora uses dnf — know both package managers
• systemd is the standard service manager on all modern Linux distros
• WSL2 lets you run Linux on Windows without dual-booting — great for learning
Common Questions
Q: Can I install macOS on non-Apple hardware?
A: Technically possible via 'Hackintosh' but violates Apple's EULA and is unreliable. Not recommended for production use.
Q: Which Linux distro should I learn first?
A: Ubuntu. It's the most popular, has the largest community, and is used in many cloud environments (AWS, Docker containers).
macOS and Linux Basics

Photo by Foysal Ahmed on Pexels
IT support professionals must work across multiple operating systems. macOS is common in creative and executive environments, while Linux powers servers, containers, and an increasing number of developer workstations.
macOS Architecture
macOS is Apple's desktop operating system, built on Unix (Darwin). Key characteristics:
Versions: macOS updates are free and named after California locations. Ventura (13), Sonoma (14), Sequoia (15). Apple supports the current version plus the previous two for security updates.
File System: APFS (Apple File System) since macOS 10.13. Supports snapshots, encryption, space sharing, and fast cloning. Replaced HFS+ which was used since 1998.
Security: System Integrity Protection (SIP) prevents modifications to system files. Gatekeeper checks app signatures. XProtect is built-in malware detection. T2/M-series chips provide Secure Enclave for encryption keys.
Package Management: macOS does not have a native package manager. Common options: Homebrew (brew install package), Mac App Store, and .dmg/.pkg installers.
macOS Troubleshooting
Safe Mode: Hold Shift during boot. Disables third-party extensions, clears caches, runs filesystem check. Useful for isolating startup issues.
Recovery Mode: Hold Cmd+R (Intel) or press and hold power button (Apple Silicon). Provides Disk Utility, reinstall macOS, and Terminal access.
Reset NVRAM/PRAM: Hold Option+Cmd+P+R during boot (Intel Macs). Clears firmware settings. Apple Silicon Macs do this automatically during a shutdown.
Reset SMC: System Management Controller controls power, battery, fans. Reset varies by model — check Apple's support site for specific steps.
Disk Utility: First Aid feature checks and repairs disk permissions and filesystem errors. Accessible from Recovery Mode for unbootable systems.
Activity Monitor: Equivalent to Windows Task Manager. Shows CPU, memory, energy, disk, and network usage by process.
Linux Fundamentals
Linux is open-source and comes in 'distributions' (distros). For IT support, you need to know the major families:
Debian/Ubuntu: Most popular desktop Linux. Ubuntu is the most common entry point. Uses APT package manager (apt install, apt update, apt upgrade). Debian is the stable base — Ubuntu adds user-friendly tools and newer packages.
Red Hat/CentOS/Fedora: Enterprise Linux family. Uses RPM/YUM/DNF package manager (dnf install, dnf update). Red Hat Enterprise Linux (RHEL) is commercial. CentOS was the free equivalent (now Rocky/Alma Linux). Fedora is the bleeding-edge upstream.
Arch: Rolling release, minimalist. For advanced users. pacman package manager. Arch Linux is not recommended for production but is excellent for learning Linux internals.
SUSE/openSUSE: European enterprise distribution. Uses Zypper package manager. YaST is the configuration tool. Common in European enterprises.
Essential Linux Commands
File Operations:
• ls -la — list all files with permissions
• cd /path — change directory
• cp source dest — copy files
• mv source dest — move/rename files
• rm -rf directory — recursively delete (DANGEROUS)
• mkdir dirname — create directory
• chmod 755 file — set permissions (rwxr-xr-x)
• chown user:group file — change ownership
System Information:
• uname -a — kernel version and architecture
• df -h — disk space usage
• free -h — RAM usage
• top or htop — process monitor
• uptime — how long the system has been running
• dmesg — kernel messages (hardware info)
Networking:
• ip addr — show network interfaces (replaced ifconfig)
• ping host — test connectivity
• ss -tulpn — show open ports (replaced netstat)
• curl -I url — fetch HTTP headers
• ssh user@host — remote login
• scp file user@host:/path — secure copy
Package Management:
• apt update && apt upgrade — Ubuntu/Debian
• dnf update && dnf upgrade — Fedora/RHEL
• pacman -Syu — Arch
Service Management (systemd):
• systemctl status nginx — check service status
• systemctl start nginx — start service
• systemctl enable nginx — start on boot
• journalctl -u nginx — view service logs
• journalctl -xe — recent system errors
Step-by-Step: Managing Services in Linux
Step 1: Check if a service is running: systemctl status apache2
Step 2: If not running, start it: sudo systemctl start apache2
Step 3: Make it start on boot: sudo systemctl enable apache2
Step 4: Verify it's listening on port 80: sudo ss -tulpn | grep :80
Step 5: Check the logs for errors: sudo journalctl -u apache2 --since '1 hour ago'
Step 6: Restart after config changes: sudo systemctl restart apache2
Step 7: Verify configuration is valid: sudo apachectl configtest
Free Tools for Cross-Platform Support
VirtualBox: Free VM software for running Linux on Windows/macOS for learning.
WSL2: Windows Subsystem for Linux. Run Ubuntu, Debian, or Kali directly on Windows 11. No dual-boot needed.
Homebrew: Package manager for macOS (and Linux). Install development tools and utilities easily.
SSH: Available on all platforms. Windows 11 has built-in OpenSSH client. Connect to any server with: ssh user@hostname
Key Takeaways
• macOS is Unix-based — many Linux commands work (ls, cd, grep, find, ssh)
• Safe Mode and Recovery Mode are the primary macOS troubleshooting tools
• Ubuntu/Debian uses apt, RHEL/Fedora uses dnf — know both package managers
• systemd is the standard service manager on all modern Linux distros
• WSL2 lets you run Linux on Windows without dual-booting — great for learning
Common Questions
Q: Can I install macOS on non-Apple hardware?
A: Technically possible via 'Hackintosh' but violates Apple's EULA and is unreliable. Not recommended for production use.
Q: Which Linux distro should I learn first?
A: Ubuntu. It's the most popular, has the largest community, and is used in many cloud environments (AWS, Docker containers).
There are no comments for now.