Operate running systems Flashcards Preview

RHCSAv8.2 > Operate running systems > Flashcards

Flashcards in Operate running systems Deck (11)
Loading flashcards...
1

You have forgotten the password for root. List the steps to reset root's password

1. From boot loader menu, press e to edit grub
2. Move cursor to the end of the linux line and append rd.break
3. Ctrl + X to reboot
4. mount -o remount,rw /sysroot
5. chroot /sysroot
6. passwd root
7. touch /.autorelabel
8. Type exit twice

2

How do you switch to a different target on a running system?

systemctl isolate multi-user.target

3

Increase nice level on process 1234 to the highest priority

renice -n -19 1234

4

Identify the currently active tuning profile the system is currently using

tuned-adm active

5

List all available tuning profiles

tuned-adm list

6

Switch the active tuning profile to the throughput-performance profile.

tuned-adm profile throughput-performance
tuned-adm active

7

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

8

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

9

List journal entries at the err priority or higher.

journalctl -p err

10

List all journal entries from today's records.

journalctl --since today

11

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