Commands and Troubleshooting
Operating system commands allow users to interact with their computers, manage files, inspect processes, and configure system settings. Troubleshooting helps identify and resolve common software, hardware, and performance problems.
This section introduces essential Linux, Windows, and macOS commands, followed by practical techniques for diagnosing operating system issues.
What You'll Learn
- Use essential Linux terminal commands.
- Understand common Windows Command Prompt commands.
- Explore macOS terminal commands.
- Navigate files and directories.
- Monitor processes, memory, disks, and network connectivity.
- Diagnose common operating system problems.
- Follow a systematic troubleshooting process.
Lessons
1. Linux Commands
Learn how to work with the Linux terminal and perform common system administration tasks.
Topics include:
- File and directory navigation
- Creating, copying, moving, and deleting files
- Viewing and searching file contents
- File permissions and ownership
- Process management
- Disk and memory inspection
- Package management
- Basic networking commands
2. Windows Commands
Explore commands available in Windows Command Prompt for file management, system inspection, and troubleshooting.
Topics include:
- File and directory operations
- Viewing system information
- Managing processes and tasks
- Checking network connectivity
- Inspecting IP configuration
- Checking disks and system files
- Basic command-line troubleshooting
3. macOS Commands
Learn common macOS terminal commands and understand how to manage files, inspect system resources, and diagnose problems.
Topics include:
- Navigating directories
- Managing files and folders
- Viewing system information
- Monitoring processes
- Checking disk usage
- Inspecting network configuration
- Understanding macOS-specific command-line tools
4. OS Troubleshooting
Learn a structured approach to identifying, diagnosing, and resolving operating system problems.
Topics include:
- Identifying symptoms and error messages
- Checking CPU, memory, and disk usage
- Diagnosing network connectivity issues
- Troubleshooting boot and startup failures
- Investigating application crashes
- Reviewing system logs
- Checking permissions and configuration
- Verifying solutions and documenting results
Recommended Learning Path
- Linux Commands
- Windows Commands
- macOS Commands
- OS Troubleshooting
Essential Commands at a Glance
| Task | Linux | Windows CMD | macOS |
|---|---|---|---|
| List files | ls | dir | ls |
| Show current directory | pwd | cd | pwd |
| Change directory | cd | cd | cd |
| Display network configuration | ip addr | ipconfig | ifconfig |
| Test connectivity | ping | ping | ping |
| View running processes | ps aux | tasklist | ps aux |
| Check disk space | df -h | wmic logicaldisk get size,freespace* | df -h |
The wmic utility is deprecated or unavailable on some newer Windows installations. PowerShell provides alternatives.
Practical Activities
- Create a directory and several files using terminal commands.
- Search for a specific word inside a text file.
- Inspect running processes and identify resource-intensive applications.
- Check available disk space and memory usage.
- Test connectivity to a host you own or are authorized to test.
- Review system logs to investigate a simulated error.
- Write down a troubleshooting checklist for a slow computer.
- Compare equivalent commands across Linux, Windows, and macOS.
Troubleshooting Workflow
- Identify: Describe the problem and record any error messages.
- Inspect: Check system resources, settings, and logs.
- Isolate: Determine whether the issue affects one application, one user, or the entire system.
- Diagnose: Test likely causes one at a time.
- Resolve: Apply the smallest appropriate fix.
- Verify: Confirm the issue is resolved without introducing new problems.
- Document: Record the cause and solution for future reference.
Practice Questions
- What is a command-line interface?
- Differentiate between a terminal and a shell.
- Which commands list files in Linux and Windows?
- How can you inspect running processes?
- How do you check network connectivity?
- How can you identify insufficient disk space?
- Why are system logs useful during troubleshooting?
- What is the difference between a symptom and a root cause?
- Why should commands that delete files or modify system settings be used carefully?
- How would you troubleshoot a computer that cannot connect to the internet?
Next Steps
After completing this section, continue to Virtualization and Containers to learn how operating systems run inside virtual machines and isolated environments.
Ugenz Academy — Learn • Build • Protect • Grow.