1.9 Identify common features and tools of the Linux client/desktop operating system.
📘CompTIA A+ Core 2 (220-1202)
Linux Informational Commands
Linux uses commands in a terminal to get information about the system, files, and processes. These commands are essential for managing a Linux client or desktop.
1. man – Manual pages
- Purpose: Shows the manual or help page for a command.
- Usage:
man <command> - Example:
man lsThis shows the manual for thelscommand, explaining how it works and its options. - IT Use Case:
In IT environments, if a technician is unsure about a command or its options,manprovides detailed documentation. It’s like a built-in Linux help system.
2. cat – Concatenate and display files
- Purpose: Displays the contents of a file in the terminal or combines multiple files.
- Usage:
cat <filename> - Example:
cat /etc/passwdThis displays the user accounts on the system. - IT Use Case:
- Quickly check configuration files.
- Combine multiple log files into one for analysis.
- Extra Tip:
catcan also create simple files:cat > example.txtThen type content and press Ctrl+D to save.
3. top – Monitor processes in real-time
- Purpose: Shows running processes, CPU usage, memory usage, and system resource consumption in real-time.
- Usage:
top - Example: Run
topand it shows a list of all processes sorted by CPU usage. - IT Use Case:
- Identify processes that are using too much CPU or memory.
- Monitor server performance during high load.
- Extra Tip: Press q to quit
top.
4. ps – Process status
- Purpose: Shows information about currently running processes. Unlike
top, it’s a snapshot, not real-time. - Usage:
ps auxa– Show all users’ processesu– Display user/owner of processesx– Show processes without a terminal
- IT Use Case:
- Check if a particular service or application is running.
- Useful for troubleshooting unresponsive applications.
5. du – Disk usage of files and directories
- Purpose: Displays the size of files and directories.
- Usage:
du -h /home-h= human-readable (KB, MB, GB)
- IT Use Case:
- Identify which directories or files are taking up the most space.
- Useful for managing storage on Linux desktops and servers.
6. df – Disk free space
- Purpose: Shows available and used disk space on file systems.
- Usage:
df -h-h= human-readable
- IT Use Case:
- Quickly check free space before installing new applications or saving large files.
- Important for preventing full disks, which can cause system errors.
Quick Comparison: du vs df
| Command | Shows | Level of detail |
|---|---|---|
du | Disk usage per file/folder | File-level |
df | Disk space per filesystem | Partition-level |
✅ Key Exam Tips
man= Always remember it’s the built-in help. You can useman <command>for any Linux command.cat= Useful for viewing files quickly.top= Use it for real-time process monitoring.ps= Use it for snapshot of processes.du= Shows size of directories/files.df= Shows available disk space on partitions.
These commands are commonly tested on the CompTIA A+ Linux client objectives, often focusing on understanding what each command does and when to use it in an IT scenario.
