These are my personal notes while studying for the EX200 exam in pursuit of the Redhat Certified System Administrator designation. These notes are far from complete knowledge required for the exam, I only made notes about some concepts I didn’t fully understand already. There’s some assumed background knowledge required to be successful.
The notes are structured according to the exam objectives provided by Red Hat, and there’s a table of contents at the top of the page for each section. I hope you enjoy, thank you.
This post is part of a larger series on RHCSA
Access a shell prompt and issue commands with correct syntax Bash The shell is the program which is invoked as part of the login process for a user. Redhat uses bash as its default shell. The default shell can be set per-user in the /etc/passwd file.
The exam requires basic familiarity with how to navigate the shell.
# Prints working directory pwd # Lists files in a directory ls # Change directory cd <dir> Bash Startup Files A bash shell can either be a login shell or non-login shell. The very first process that’s executed when a user logs in is the login shell, there is only one per login. Any shells spawned after that are children of the login shell and are considered non-login shells.
...
This post is part of a larger series on RHCSA
Conditionally execute code (use of: if, test, [], etc.) test The absolute heart of conditionals in bash is a program called test. You can view the man pages for test to get documentation on all the valid comparisons you can make.
When test makes a comparison, it counter-intuitively returns exit code 0 (success/no error) for true and exit code 1 for false. It sticks with exit code conventions at the sacrifice of boolean value conventions. The below examples demonstrate various comparisons made with test, at the end of each example we check the error code with echo $?.
...
This post is part of a larger series on RHCSA
Boot, reboot, and shut down a system normally This bloated systemd trash has taken over our power controls, what next.
The real thing that’s going on under the hood is systemctl isolate poweroff.target. It has several shorthands:
shutdown -P now telinit 0 shutdown now systemctl poweroff poweroff Boot systems into different targets manually You can get and set the default targets to boot into with:
...