Services & Logs

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play

1/50

encourage image

There are no tags or description

Looks like no tags are added yet.

51 Terms

1
New cards

What is systemd?

The system and service manager used by Arch

2
New cards

What process ID does the system init process have?

1

3
New cards

What is a systemd unit?

A resource or task that systemd manages

4
New cards

What does a .service unit manage?

A service process

5
New cards

What does a .timer unit do?

Schedules activation of another unit

6
New cards

What does a .socket unit do?

Listens and activates a service on demand

7
New cards

What does a .mount unit manage?

A filesystem mount

8
New cards

What is a target?

A named grouping of units

9
New cards

Which target usually provides a graphical login?

graphical.target

10
New cards

Which target provides a multi-user text system?

multi-user.target

11
New cards

Which command starts a service?

sudo systemctl start name

12
New cards

Which command stops a service?

sudo systemctl stop name

13
New cards

Which command restarts a service?

sudo systemctl restart name

14
New cards

Which command reloads a service's configuration if supported?

sudo systemctl reload name

15
New cards

Which command enables a service at boot?

sudo systemctl enable name

16
New cards

Which command disables a service at boot?

sudo systemctl disable name

17
New cards

Does enable by itself start a service immediately?

No

18
New cards

What does systemctl mask do?

Prevents a unit from being started

19
New cards

What reverses systemctl mask?

systemctl unmask

20
New cards

Which command tests whether a service is running?

systemctl is-active name

21
New cards

Which command tests whether it is enabled?

systemctl is-enabled name

22
New cards

Which command lists loaded units?

systemctl list-units

23
New cards

Which command lists installed unit files?

systemctl list-unit-files

24
New cards

Which command lists timers?

systemctl list-timers

25
New cards

Which command shows a unit file and its overrides?

systemctl cat name

26
New cards

Which command creates an override for a unit?

sudo systemctl edit name

27
New cards

Which command reloads unit definitions after manual edits?

sudo systemctl daemon-reload

28
New cards

Where do custom system units go?

/etc/systemd/system

29
New cards

Where do user-created user units usually go?

~/.config/systemd/user

30
New cards

What option makes systemctl manage user services?

--user

31
New cards

Which unit section defines the program to start?

[Service]

32
New cards

Which setting names the start command?

ExecStart

33
New cards

Which setting controls automatic restarting?

Restart

34
New cards

Which section controls how a unit is enabled?

[Install]

35
New cards

Which setting orders a unit after another?

After

36
New cards

Does After by itself require the other unit?

No

37
New cards

What is journald?

systemd's logging service

38
New cards

Which command shows all available journal logs?

journalctl

39
New cards

Which option follows new journal entries?

journalctl -f

40
New cards

Which option shows logs for one unit?

journalctl -u name

41
New cards

Which option shows the previous boot's logs, if retained?

journalctl -b -1

42
New cards

Which command lists recorded boots?

journalctl --list-boots

43
New cards

Which option shows kernel messages from the journal?

journalctl -k

44
New cards

Which option filters logs since today?

journalctl --since today

45
New cards

Which command shows journal disk usage?

journalctl --disk-usage

46
New cards

Which command reduces archived journal logs to a size?

sudo journalctl --vacuum-size=200M

47
New cards

Which command shows overall boot time?

systemd-analyze

48
New cards

Which command lists units by startup time?

systemd-analyze blame

49
New cards

Which command reboots the system?

systemctl reboot

50
New cards

Which command powers off the system?

systemctl poweroff

51
New cards