RHCSA Ch2 Flashcards
After clicking ‘e’ in the boot loader, what do you type at the end of the ‘linux’ line to get into the emergency target
systemd.unit=emergency.target
After clicking ‘e’ in the boot loader, what do you type at the end of the ‘linux’ line to change root password?
rd.break
Root password change step 1
command to remount to sysroot
mount -o remount,rw /sysroot
No space between / and sysroot
Root password change step 2
Change root directory to sysroot
chroot /sysroot
Root password change step 3
Have SELinux rewrite the security context on all files on the next reboot
touch /.autorelabel
see default boot target
systemctl get-default
set different boot target
systemctl set-default graphical
systemctl set-default multi-user
Look at service unit files
systemctl list-unit-files -at service
- t shows all enabled
- a shows all
show list of enable running services
systemctl list-units -at service
Show unit file of a particular service
systemctl cat rsyslog
Disable a service from ever being able to start
systemctl mask atd
Note* atd is a service
manage time and date
timedatectl
Create a one time job.
at now +5min
at> type in command here then press ctrl D
what is the at service called
atq
List at jobs
atq