Operate running systems Flashcards

1
Q

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

A
  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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

systemctl isolate multi-user.target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Increase nice level on process 1234 to the highest priority

A

renice -n -19 1234

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Identify the currently active tuning profile the system is currently using

A

tuned-adm active

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List all available tuning profiles

A

tuned-adm list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

tuned-adm profile throughput-performance

tuned-adm active

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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?

A

journalctl -f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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?

A

journalctl -o verbose

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List journal entries at the err priority or higher.

A

journalctl -p err

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List all journal entries from today’s records.

A

journalctl –since today

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

To store journals in /var/log/journal directory across reboots, what file would you set the Storage parameter to persistent?

A

vim /etc/systemd/journald.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly