2025-02-11 21:58:34 -06:00
|
|
|
# RHCSA Study Notes
|
|
|
|
|
|
|
|
|
|
## Exam Information
|
|
|
|
|
- Exam Code: EX200
|
|
|
|
|
- Duration: 2.5 hours
|
|
|
|
|
- Passing Score: 210/300 (70%)
|
|
|
|
|
|
2025-02-11 23:44:38 -06:00
|
|
|
[CLI Commands](rhcsa.md#cli-commands)
|
|
|
|
|
|
2025-02-11 21:58:34 -06:00
|
|
|
## Core Topics
|
|
|
|
|
|
|
|
|
|
### 1. Essential Tools
|
2025-02-11 22:26:59 -06:00
|
|
|
- [x] Access a shell prompt and issue commands
|
|
|
|
|
- [x] Use input-output redirection
|
|
|
|
|
- [x] Use grep and regular expressions
|
|
|
|
|
- [x] Access remote systems using SSH
|
|
|
|
|
- [x] Log in and switch users in multiuser targets
|
2025-02-11 21:58:34 -06:00
|
|
|
|
|
|
|
|
### 2. File Management
|
2025-02-11 22:26:59 -06:00
|
|
|
- [x] Create, delete, copy, and move files and directories
|
|
|
|
|
- [x] Create and manage hard and soft links
|
|
|
|
|
- [x] Find files and directories
|
|
|
|
|
- [x] Manage file permissions and ownership
|
2025-02-11 21:58:34 -06:00
|
|
|
|
|
|
|
|
### 3. Service Configuration
|
2025-02-11 23:44:38 -06:00
|
|
|
- [x] Configure networking and hostname resolution
|
2025-02-11 21:58:34 -06:00
|
|
|
- [ ] Start, stop, and check system service status
|
|
|
|
|
- [ ] Configure services to start automatically at boot
|
|
|
|
|
- [ ] Configure time service clients
|
|
|
|
|
|
|
|
|
|
### 4. Storage Management
|
|
|
|
|
- [ ] List, create, delete, and modify physical storage partitions
|
|
|
|
|
- [ ] Create and configure filesystem
|
|
|
|
|
- [ ] Configure and manage swap space
|
|
|
|
|
- [ ] Create and manage LVM storage
|
|
|
|
|
- [ ] Create and manage STRATIS storage
|
|
|
|
|
|
|
|
|
|
### 5. Container Management
|
|
|
|
|
- [ ] Find and retrieve container images
|
|
|
|
|
- [ ] Create and manage containers
|
|
|
|
|
- [ ] Configure container storage
|
|
|
|
|
|
|
|
|
|
### 6. System Management
|
|
|
|
|
- [ ] Boot, reboot, and shut down a system
|
|
|
|
|
- [ ] Install Red Hat Enterprise Linux
|
|
|
|
|
- [ ] Use systemd targets for system management
|
|
|
|
|
- [ ] Configure system logging
|
|
|
|
|
- [ ] Schedule tasks using cron and systemd timers
|
|
|
|
|
|
|
|
|
|
### 7. Security
|
|
|
|
|
- [ ] Configure firewall settings
|
|
|
|
|
- [ ] Configure SELinux
|
|
|
|
|
- [ ] Manage users and groups
|
|
|
|
|
- [ ] Set file permissions and ownership
|
|
|
|
|
|
|
|
|
|
## Resources
|
|
|
|
|
- Official Red Hat Documentation
|
|
|
|
|
- Practice Environments
|
|
|
|
|
- Useful Commands Reference
|
|
|
|
|
|
|
|
|
|
## Progress Tracking
|
|
|
|
|
- [ ] Complete practice exams
|
|
|
|
|
- [ ] Lab environment setup
|
|
|
|
|
- [ ] Hands-on practice completed
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
*Note: Check boxes can be used to track progress on each topic as you study*
|
2025-02-11 23:09:41 -06:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# CLI Commands
|
|
|
|
|
|
|
|
|
|
## Networking
|
|
|
|
|
|
2025-02-11 23:34:21 -06:00
|
|
|
### nmtui
|
2025-02-11 23:09:41 -06:00
|
|
|
```bash
|
|
|
|
|
nmtui # Network Manager Text User Interface
|
2025-02-11 23:34:21 -06:00
|
|
|
```
|
2025-02-11 23:09:41 -06:00
|
|
|
|
2025-02-11 23:34:21 -06:00
|
|
|
### ip
|
|
|
|
|
```bash
|
2025-02-11 23:09:41 -06:00
|
|
|
sudo ip addr add dev eth0 192.168.2.2/24 # Add an IP address to the interface eth0 Note: Not persistent, will be lost on reboot
|
2025-02-11 23:34:21 -06:00
|
|
|
```
|
2025-02-11 23:22:14 -06:00
|
|
|
|
2025-02-11 23:34:21 -06:00
|
|
|
### nmcli
|
|
|
|
|
```bash
|
2025-02-11 23:22:14 -06:00
|
|
|
nmcli connection add connection.interface-name ens160 ipv4.addresses 192.168.100.1/24 ipv4.gateway 192.168.100.254 type ethernet # Persistant IP address
|
|
|
|
|
|
|
|
|
|
sudo nmcli connection up ethernet-ens160 # Bring up the ethernet interface
|
|
|
|
|
|
|
|
|
|
sudo nmcli connection down ethernet-ens160 # Bring down the ethernet interface
|
|
|
|
|
|
|
|
|
|
sudo nmcli connection delete id "ens160" # Delete the ethernet connection
|
|
|
|
|
|
|
|
|
|
sudo nmcli connection show # Show all connections
|
2025-02-11 23:09:41 -06:00
|
|
|
```
|
|
|
|
|
|
2025-02-12 21:00:24 -06:00
|
|
|
## Manage and Monitor Processes
|
|
|
|
|
|
|
|
|
|
### top
|
|
|
|
|
```bash
|
|
|
|
|
top # Display running processes
|
|
|
|
|
|
|
|
|
|
top -o %MEM # Sort by memory usage
|
|
|
|
|
|
|
|
|
|
top -o %CPU # Sort by CPU usage
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-02-11 23:09:41 -06:00
|
|
|
|
|
|
|
|
|