Services, Packages, and systemd

15. Services, Packages, and systemd#

This chapter introduces service administration: package awareness, systemctl, journalctl, units, service logs, and daemon troubleshooting.

  • Packages: Know how software is installed and updated.

  • Services: Manage long-running system tasks.

  • systemd: Inspect units and service state.

  • journals: Read service logs with journalctl.

  • Persistence: Recognize legitimate and suspicious service startup paths.

Chapter Video

Linux Crash Course - systemd: Using the systemctl command (26:31) by Learn Linux TV

Hosted on YouTube; property of its original creator, embedded here for educational reference only.

Learning Objectives

By the end of this chapter, you will be able to:

  1. Inspect installed packages and service state.

  2. Use systemctl to view, start, stop, and restart services in a lab.

  3. Read service logs with journalctl.

  4. Recognize basic unit-file structure.

  5. Explain how services can be legitimate automation or persistence mechanisms.

Chapter Flow

Glossary

#

Term

Explanation

1

package

Installed software bundle.

2

service

Long-running managed process.

3

daemon

Background service process.

4

systemd

Linux service manager.

5

unit

systemd configuration object.

6

systemctl

Tool for managing systemd units.

7

journalctl

Tool for reading the systemd journal.

8

service log

Events emitted by a service.

9

restart

Stop and start a service again.

10

persistence

Mechanism that starts code automatically.