Operate running systems Flashcards
You have forgotten the password for root. List the steps to reset root’s password
- From boot loader menu, press e to edit grub
- Move cursor to the end of the linux line and append rd.break
- Ctrl + X to reboot
- mount -o remount,rw /sysroot
- chroot /sysroot
- passwd root
- touch /.autorelabel
- Type exit twice
How do you switch to a different target on a running system?
systemctl isolate multi-user.target
Increase nice level on process 1234 to the highest priority
renice -n -19 1234
Identify the currently active tuning profile the system is currently using
tuned-adm active
List all available tuning profiles
tuned-adm list
Switch the active tuning profile to the throughput-performance profile.
tuned-adm profile throughput-performance
tuned-adm active
What command outputs the last 10 lines of the
system journal and continues to output new journal entries as they get written to the journal?
journalctl -f
In addition to the visible content of the journal, there are fields attached to the log entries that
can only be seen when verbose output is turned on. What is this command?
journalctl -o verbose
List journal entries at the err priority or higher.
journalctl -p err
List all journal entries from today’s records.
journalctl –since today
To store journals in /var/log/journal directory across reboots, what file would you set the Storage parameter to persistent?
vim /etc/systemd/journald.conf