Systtem Initializtion, Message Logging, and System Tuning Flashcards

1
Q

list all active and inactive socket units

A

systemctl -t socket –all

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

List all type socket currently loaded in memory and the service they activate

A

systemctl list-sockets

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

list all unit files and their current state

A

systemctl list-unit-files

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

list all units that failed to start at system boot

A

systemctl –failed

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

list the hierarchy of all dependencies for the current default target

A

systemctl list-dependencies

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

list hierarchy of all dependencies for a specific unit

A

systemctl list-dependencies atd.service

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

check to see if atd will auto restart on reboot

A

systemctl is-enabled atd

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

restart atd

A

systemctl restart atd

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

see details of atd service

A

systemctl show atd

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

prohibit atd from being enabled or disabled

A

systemctl mask atd

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

view units of type target are currently loaded and active

A

systemctl -t target

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

see current default boot target

A

systemctl get-default

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

set the default boot target to multi-user

A

sudo systemctl set-default multi-user

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

switch into multi-user target

A

sudo systemctl isolate multi-user

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

se messages generated since last system reboot

A

sudo journalctl

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

see all messages logged for a certain process

A

sdo journalctl _PID=$(pgrep chronyd)

17
Q

see all messages for a specific system unit

A

sudo journalctl _SYSTEMD_UNIT=sshd.service

18
Q

view all error within a range of dates

A

sudo journalctl –since 2019-10-10 –until 2019-10-16 -p err

19
Q

see all warning messages that have appeared today, display them in reverse chronological order

A

sudo journalctl –since today -p warning -r

20
Q

real-time view of log file

A

sudo journalctl -f

21
Q

where are the tuning profiles located

A

/usr/lib/tuned

22
Q

display all available tuning profiles

A

sudo tuned-adm list

** must have tuned installed

23
Q

see active tuned profile

A

sudo tuned-adm active

24
Q

switch to powersave profile

A

sudo tuned-adm profile powersave

25
Q

see the recommended tuned profile

A

sudo tuned-adm recommend