Here are the 50 practical scenarios related on how to manage running linux operating systems, booting systems, process management, tuning and scheduling, interrupt logs, securely transferring files, and starting/stopping services. These scenarios are important for the RHSA (Red Hat Certified System Administrator) exam:
Operating Running Systems:
- Change the current runlevel to a specific target (e.g., multi-user.target).
- List available targets and identify the current target.
- Enable a service to start on boot.
- Disable a service from starting on boot.
- Check the status of a specific service.
- Reload a service’s configuration without stopping it.
- Use “systemctl” to identify failed units.
- Use “journalctl” to view system log messages.
- View a specific log level in the systemd journal.
Booting Systems:
- Boot the system into rescue mode.
- Interrupt the boot process and access the GRUB menu.
- Set a different target as the default boot target.
- Identify the default target in the GRUB configuration.
- Configure GRUB to boot a specific kernel version.
Process Management:
- Display a list of all running processes.
- Find and terminate a specific process by name.
- Use “ps” to show a process tree.
- Change a running process’s priority using “nice.”
- Send a signal to a process to stop it gracefully.
- Determine which process is listening on a specific port.
- Identify the parent process of a given process.
Tuning and Scheduling:
- Set up a cron job to run a script every day at a specific time.
- List all scheduled cron jobs for the current user.
- Configure “ulimit” to limit resource usage for a user.
- Adjust the kernel I/O scheduler to optimize performance.
- Use “sysctl” to change kernel parameters.
- Display CPU and memory usage using “top.”
- Monitor disk space usage in real-time with “iostat.”
- Monitor network activity using “iftop” or “nload.”
- Schedule a one-time task using “at.”
- Create a recurring task using “cron” and schedule it to run hourly.
- View and edit “cron” jobs for a specific user using “crontab.”
Interrupt Logs:
- View the contents of the system log using “dmesg.”
- Search for kernel error messages in “dmesg.”
- Check for hardware-related messages in “dmesg.”
- Use “journalctl” to view systemd logs with specific priorities.
- Monitor logs in real-time with “tail” or “journalctl -f.”
- Check the log rotation settings and policies.
- Create a custom log file for a specific application.
Securely Transferring Files:
- Use “scp” to securely copy a file from one server to another.
- Transfer files securely between systems using “rsync.”
- Create and use SSH keys for passwordless file transfers.
- Use “sftp” to interactively transfer files over SSH.
Starting and Stopping Services:
- Start a service using “systemctl start.”
- Stop a service using “systemctl stop.”
- Restart a service using “systemctl restart.”
- Enable a service to start on boot using “systemctl enable.”
- Disable a service from starting on boot using “systemctl disable.”
- Check the status of a service using “systemctl status.”
- Reload a service’s configuration using “systemctl reload.”
Note :
These practical scenarios cover various aspects of operating Linux systems, managing processes, configuring system booting, tuning system performance, monitoring logs, and securely transferring files – all of which are important skills for RHSA certification and real-world system administration tasks.