All tags
Start here · systemdFind out why a Linux service failed, with journalctl12 steps · 13 min read · Linux server owners who rarely read logsStart the guide systemd
Narrow down
Guides1
Shell176
- Tip
timedatectl timesync-statustimedatectl timesync-status shows which server your clock syncs withSee the NTP server, offset and poll interval of systemd-timesyncd3 Dec 2026 - Tip
[Service]TimeoutStopSec= decides how long systemd waits before it kills a serviceSets how long a service gets to stop after SIGTERM before systemd sends SIGKILL.3 Dec 2026 - Tip
sudo mkdir -p /etc/systemd/system/service.d/etc/systemd/system/service.d/ gives every service the same settingA type-level drop-in folder applies one setting to all units of a type.3 Dec 2026 - Tip
[Service]RuntimeMaxSec= stops a systemd service that runs longer than it shouldTerminates a service and marks it failed when it exceeds a maximum run time.3 Dec 2026 - Tip
printf 'hunter2' | sudo systemd-creds encrypt --name=dbpass - dbpass.credsystemd-creds encrypt keeps a service secret encrypted on diskEncrypts a secret into a file that only systemd can decrypt for a named credential.3 Dec 2026 - Tip
systemd-analyze timespan 1h30minsystemd-analyze timespan turns 1h30min into plain microsecondsParses a time span like the ones in unit files and prints it normalized.3 Dec 2026 - Tip
sudo bootctl set-oneshot IDBootctl set-oneshot boots another systemd-boot entry onceLists systemd-boot entries with bootctl list and picks one for the next boot only.3 Dec 2026 - Tip
systemd.unit=rescue.targetSystemd.unit=rescue.target on the kernel command line boots into a rescue shellAdds one option to the kernel command line for a single boot, to land in rescue or emergency mode.3 Dec 2026 - Tip
systemctl -H [email protected] status nginxsystemctl -H manages services on another machine over SSHCheck or restart a remote service without opening a shell there first.1 Dec 2026 - Tip
sudo systemctl edit apt-daily-upgrade.timerPick when unattended-upgrades runs by overriding apt-daily-upgrade.timerMove the automatic upgrade run to a quiet hour of your choosing.1 Dec 2026 - Tip
sudo systemctl edit indexer.serviceMemoryHigh= squeezes a hungry service's memory before anything is killedSlow a greedy service down and reclaim its memory at a soft limit.1 Dec 2026 - Tip
systemctl list-unit-files --state=enabledsystemctl list-unit-files with a state filter lists what systemd starts at bootGet a clean list of every enabled unit, or every masked or disabled one.30 Nov 2026 - Tip
[Service]StateDirectory= gives a systemd service its own folder under /var/libLet systemd create and own the data folder of a service, with the right user.30 Nov 2026 - Tip
sudo systemd-analyze log-level debugsystemd-analyze log-level debug makes systemd itself log in detailTurn on debug logging for the service manager at runtime, without a reboot.30 Nov 2026 - Tip
[Service]A minus in front of a systemd ExecStartPre= command ignores its failureLet an optional preparation step fail without stopping the service from starting.30 Nov 2026 - Tip
systemctl list-socketssystemctl list-sockets shows which port starts which systemd serviceSee every socket systemd listens on and the service each one would start.30 Nov 2026 - Tip
Storage=volatileStorage=volatile keeps the journalctl log in RAM onlyStop journald from writing logs to an SD card or other fragile storage.30 Nov 2026 - Tip
systemd-analyze cat-config systemd/journald.confsystemd-analyze cat-config shows a systemd config with all its drop-insRead the full effective config of journald, logind or resolved in one place.30 Nov 2026 - Tip
sudo journalctl --setup-keysJournalctl setup-keys seals your logs so tampering shows upMake later changes to stored journal files detectable with a key you keep elsewhere.30 Nov 2026 - Tip
coredumpctl list --since todaycoredumpctl list shows every program that crashed on your Linux boxSee which programs crashed, when, and with which signal, all from the journal.30 Nov 2026 - Tip
sudo mkdir -p /etc/systemd/journald.conf.dMaxRetentionSec in journald.conf caps how old journalctl history getsMake journald delete old log files after a fixed age, whatever the disk size.30 Nov 2026 - Tip
journalctl -u nginx -e -n 5000journalctl -e loads only the last 1000 lines unless you ask for moreScroll further back after jumping to the end of the journalctl pager.30 Nov 2026 - Tip
sudo systemctl edit nginx.serviceLimitNOFILE= raises the open files limit of one systemd serviceGive a busy service more file handles than the default, set in the unit itself.30 Nov 2026 - Tip
sudo systemctl soft-rebootSystemctl soft-reboot restarts all of systemd userspace without the kernelRestart every service and the service manager quickly, while the kernel keeps running.30 Nov 2026 - Tip
sudo systemctl edit --drop-in=limits myapp.serviceSystemctl edit with drop-in names keeps several systemd overrides apartGive each override of a unit its own named file instead of one big override.conf.30 Nov 2026 - Tip
sudo journalctl --rotateJournalctl rotate makes vacuum delete the current file tooArchive the active journal file first so a cleanup can actually remove its data.30 Nov 2026 - Tip
sudo systemctl edit myapp.serviceProtectHome=yes keeps a systemd service out of every home folder, a security one-linerMakes /home, /root and /run/user empty and unreachable for one service.30 Nov 2026 - Tip
[Service]SyslogIdentifier= gives a systemd service a readable name in the logReplace names like sh, python3 or java in log lines with the name of your service.30 Nov 2026 - Tip
systemd-detect-virtsystemd-detect-virt tells a script whether it runs in a VM or containerLet a script check if it is on bare metal, in a VM or inside a container.30 Nov 2026 - Tip
DNSStubListener=noDNSStubListener=no frees port 53 from systemd-resolved for Pi-holeTurn off the local stub resolver so Pi-hole or another DNS server can bind to port 53.30 Nov 2026 - Tip
[Timer]Unit= lets one systemd timer start a service with another nameTrigger any service from a timer, so two timers can share one job.30 Nov 2026 - Tip
journalctl -N | sortjournalctl -N lists every field name your journal usesSee which field names exist before you write a match on the journalctl command line.30 Nov 2026 - Tip
sudo systemctl clean --what=cache myapp.serviceSystemctl clean wipes the cache or state of a systemd serviceDelete a service's cache, state or log folders with one command, without guessing paths.30 Nov 2026 - Tip
[Timer]AccuracySec= is why a systemd timer fires up to a minute lateMake a timer fire close to the exact time instead of anywhere in the next minute.30 Nov 2026 - Tip
systemd-escape -p --suffix=mount /mnt/backupA systemd .mount unit must be named after its mount pathName mount unit files correctly so systemd accepts them, using systemd-escape.30 Nov 2026 - Tip
[Service]ExecCondition= lets a script decide whether a systemd service runsSkip a service quietly when a check command says now is not the time.30 Nov 2026 - Tip
sudo mount -o remount,hidepid=2 /procMount /proc with hidepid=2 so users only see their own processes, a security gainHides other users' processes and their command lines from normal accounts.30 Nov 2026 - Tip
journalctl -u 'php*-fpm.service' --since todayjournalctl -u takes a wildcard to read a whole family of unitsRead all instances of a template service or every matching unit in one command.30 Nov 2026 - Tip
journalctl -u nginx --since "$(systemctl show -p ActiveEnterTimestamp --value nginx)"journalctl since ActiveEnterTimestamp shows logs from the last service startRead only the log lines since a service last started, without looking up the time.30 Nov 2026 - Tip
[Service]RestartSteps= makes systemd wait longer between each restartBack off gradually when a service keeps crashing instead of hammering it every few seconds.30 Nov 2026 - Tip
ExecReload=/bin/kill -HUP $MAINPIDExecReload= with $MAINPID gives a systemd service a working reloadMake systemctl reload send a signal to the main process of your own service.30 Nov 2026 - Tip
journalctl _TRANSPORT=stdout -u myappjournalctl _TRANSPORT=stdout shows what services printed to their terminalSeparate the lines a service printed with echo or print from its proper log calls.30 Nov 2026 - Tip
[Unit]A systemd template unit runs the same service for several namesWrite one unit file with %i and start as many named instances of it as you need.30 Nov 2026 - Tip
sudo systemctl reset-failed myapp.serviceSystemctl reset-failed clears old failures from the systemd listClean up the failed state of units so the list only shows current problems.30 Nov 2026 - Tip
sudo systemctl edit myapp.serviceIPAddressDeny=any gives one systemd service its own firewall, a security layerLimits which IP addresses a single service may talk to, in both directions.30 Nov 2026 - Tip
Accept=yesAccept=yes starts one systemd service per connection, like inetdServe a tiny network service from a script, with systemd handling the socket.30 Nov 2026 - Tip
[Service]SuccessExitStatus= tells systemd which odd exit codes are fineStop a service from showing as failed when its program exits with a harmless code.30 Nov 2026 - Tip
systemd-cgls -u nginx.servicesystemd-cgls -u shows every process inside one serviceSee the full process tree of one unit, including children the main process started.30 Nov 2026 - Tip
NoNewPrivileges=yesNoNewPrivileges=yes stops a systemd service from gaining root through setuidMake sure a service and its children can never gain more rights through sudo or setuid binaries.30 Nov 2026 - Tip
PrivateTmp=yesPrivateTmp=yes gives a systemd service its own empty /tmpKeep a service's temporary files away from other users and programs.30 Nov 2026 - Tip
[Timer]A time zone in OnCalendar= runs a systemd timer on another clockSchedule a timer in local office time while the server itself runs on UTC.30 Nov 2026 - Tip
PrivateDevices=yesPrivateDevices=yes hides your disks from a systemd serviceGive a service a minimal /dev without disks, so a bug can not read raw devices.30 Nov 2026 - Tip
systemd-delta --no-pagersystemd-delta shows every config file you or a package changedList all overridden, extended and masked systemd files on a machine in one go.30 Nov 2026 - Tip
systemctl show-environmentsystemctl show-environment shows the variables every systemd service starts withCheck which PATH and other variables services get, since they never read your shell profile.30 Nov 2026 - Tip
[Service]SystemCallFilter= blocks whole groups of system calls in a systemd serviceForbid a service from calling things like mount or reboot at the kernel level.30 Nov 2026 - Tip
sudo journalctl --relinquish-varJournalctl relinquish-var lets you unmount /var without losing logsMake journald stop writing to /var so the disk can be unmounted cleanly.30 Nov 2026 - Tip
sudo tee /etc/systemd/journald.conf.d/50-filesize.conf <<'EOF'SystemMaxFileSize in journald.conf decides how much journalctl vacuum frees at onceControl the size of each journal file, and with it how coarse cleanups are.30 Nov 2026 - Tip
journalctl MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1 -o short-isojournalctl MESSAGE_ID= lists every program that crashed with a core dumpGet a list of crashes from the journal with one fixed message ID.30 Nov 2026 - Tip
systemd-analyze plot > boot.svgsystemd-analyze plot draws your boot as an SVG timelineSee in one picture which units start in parallel and which ones hold up the boot.30 Nov 2026 - Tip
systemctl status 4211systemctl status with a PID tells you which systemd unit owns a processFind out which service or session started a process you spotted in top.30 Nov 2026 - Tip
resolvectl show-cacheresolvectl show-cache lists what systemd-resolved remembersLists the records systemd-resolved has cached, grouped by network scope.28 Nov 2026 - Tip
sudo resolvectl log-level debugResolvectl log-level debug turns on systemd-resolved debug logging without a restartRaises systemd-resolved's log level on the fly so lookups show up in the journal.28 Nov 2026 - Tip
systemd-cgtop -c -n 1systemd-cgtop is top for systemd units instead of processesShows CPU, memory and I/O use grouped per systemd unit, sorted live.28 Nov 2026 - Tip
resolvectl show-server-stateresolvectl reset-server-features makes systemd-resolved forget what it learned about a serverShows what systemd-resolved knows about each DNS server and makes it probe again.28 Nov 2026 - Tip
systemd-inhibit --why="Copying photos" rsync -a /mnt/user/photos/ /mnt/backup/photos/systemd-inhibit keeps a long job from being cut off by sleep or shutdownRuns a command while preventing the machine from sleeping or shutting down.28 Nov 2026 - Tip
sudo resolvectl nta eth0 example.comResolvectl nta skips DNSSEC checks for one domain whose signatures are brokenTells systemd-resolved to skip DNSSEC validation for one domain on one link.28 Nov 2026 - Tip
journalctl -u nginx.service --cursor-file=/var/tmp/nginx.cursorjournalctl --cursor-file continues where the last run stoppedStores the position of the last log entry in a file so the next journalctl run only shows new lines.28 Nov 2026 - Tip
journalctl -xeu nginx.servicejournalctl -x adds explanation texts to log linesAdds catalog explanation texts under log lines that have one, which helps with failed service starts.28 Nov 2026 - Tip
sudo systemctl reload-or-restart nginx.serviceSystemctl reload-or-restart reloads a service when it can and restarts when it cannotReloads a service when it supports reloading and does a full restart when it does not.28 Nov 2026 - Tip
sudo systemctl kill --signal=SIGHUP --kill-whom=main nginx.serviceSystemctl kill --signal sends a signal to a service's processesSends a chosen signal to the main or all processes of a unit without looking up a PID.28 Nov 2026 - Tip
sudo systemd-run --on-active=30 --timer-property=AccuracySec=100ms /bin/touch /tmp/foosystemd-run --on-active runs a command once after a delayCreates a one-off transient timer that starts a command after the delay you give.28 Nov 2026 - Tip
sudo systemctl revert example.serviceSystemctl revert throws away every override of a unitRemoves drop-ins and overrides of a unit so it goes back to the vendor version.28 Nov 2026 - Tip
sudo systemctl edit myapp.serviceRequiresMountsFor= makes a systemd service wait until its disk is mountedKeeps a service from starting before the disk or share it writes to is mounted.27 Nov 2026 - Tip
sudo systemctl mask --now cups.serviceSystemctl mask stops a systemd unit from starting at all, not just at bootBlocks a systemd service from being started by anything until you unmask it.27 Nov 2026 - Tip
[Unit]OnBootSec= with OnUnitActiveSec= runs a systemd timer at a fixed intervalRuns a service every few minutes, counted from its last run instead of the clock.27 Nov 2026 - Tip
192.168.1.x:/export/media /mnt/media nfs x-systemd.automount,x-systemd.idle-timeout=10min 0 0x-systemd.automount in fstab mounts a NAS share on first useMounts a network share only when a program opens the folder, so boot never waits for it.27 Nov 2026 - Tip
sudo usermod -aG systemd-journal $USERThe systemd-journal group lets you read every log without sudoRead the system journal as your normal user, without typing sudo every time.27 Nov 2026 - Tip
sudo mkdir -p /etc/systemd/journald.conf.dForwardToConsole in journald.conf puts the live log on a spare ttyShow every new journal line on a spare virtual terminal of the machine.27 Nov 2026 - Tip
sudo localectl set-locale LANG=en_US.UTF-8 LC_TIME=nl_NL.UTF-8Localectl set-locale keeps English messages with European date formatsSets English system messages with Dutch-style 24-hour date and time formatting.27 Nov 2026 - Tip
loginctl list-sessionsloginctl terminate-session closes a stale SSH login for goodEnds a hanging login session and every process that belongs to it.27 Nov 2026 - Tip
timedatectltimedatectl set-local-rtc 0 keeps the hardware clock in UTCStops the clock from jumping an hour after reboots by storing hardware time in UTC.27 Nov 2026 - Tip
systemd-analyze condition 'ConditionHost=nas*' 'ConditionVirtualization=!vm'systemd-analyze condition tests Condition= lines on the machine you run it onChecks on the spot whether a unit's Condition lines would let it start on this machine.27 Nov 2026 - Tip
systemd-analyze exit-status 203systemd-analyze exit-status explains a code like 203/EXECLooks up what a numeric service exit status means and where it comes from.27 Nov 2026 - Tip
sudo systemctl edit mysync.serviceConditionPathExists= lets a systemd service skip itself when a file is missingSkips starting a service, without marking it failed, when a chosen file is absent.27 Nov 2026 - Tip
[Service]EnvironmentFile= keeps a systemd service's settings in a separate fileLoads a service's environment variables from a separate file you can edit freely.27 Nov 2026 - Tip
sudo systemctl edit myapp.serviceLoadCredential= hands a secret to a systemd service without an environment variableGives a service a password as a private read-only file instead of an environment variable.27 Nov 2026 - Tip
sudo systemctl edit myapp.serviceLogFilterPatterns= drops a service's noisy lines before journalctl stores themStop a service's repetitive log lines from being stored in the journal at all.27 Nov 2026 - Tip
RemainAfterExit=yesRemainAfterExit=yes keeps a one-shot systemd service marked as activeKeeps a run-once setup service active after its script exits, so stop runs cleanly.27 Nov 2026 - Tip
sudo systemctl edit myapp-worker.servicePartOf= makes a systemd service stop and restart along with another oneLets a helper service follow its main service when that one stops or restarts.27 Nov 2026 - Tip
[Path]A systemd .path unit starts a service when a file changesRuns a service automatically whenever a watched file or folder changes.27 Nov 2026 - Tip
sudo systemd-run --on-active=30min /usr/local/bin/backup.shsystemd-run --on-active runs a command once, a bit laterSchedules a single command for later without at or a unit file.27 Nov 2026 - Tip
sudo systemd-run --shell -p User=www-data -p ProtectHome=yessystemd-run --shell opens a shell with the environment a service getsOpens an interactive shell under the same conditions a systemd service runs in.27 Nov 2026 - Tip
sudo systemd-run --wait -P -G -p CPUAccounting=yes -p MemoryAccounting=yes /usr/local/bin/backup.shsystemd-run --wait reports runtime and exit code when a command endsRuns a command as a service and prints its runtime and exit status afterwards.27 Nov 2026 - Tip
sudo systemctl edit myapp.serviceStandardOutput=append: writes a systemd service's output to a plain log fileSends a service's output to a normal text log file instead of the journal.27 Nov 2026 - Tip
sudo systemctl enable --now myapp.serviceSystemctl enable --now starts a service and turns it on at boot in one goEnables a service for every boot and starts it right now with one command.27 Nov 2026 - Tip
systemctl get-defaultsystemctl set-default multi-user.target boots a Linux box without the desktopMakes a Linux machine boot to a text login without starting the desktop.27 Nov 2026 - Tip
[Unit]One systemd timer can have several OnCalendar= linesGives one timer several schedules, such as different times on weekdays and weekends.27 Nov 2026 - Tip
d /srv/scratch 0755 root root 14dOne tmpfiles.d line deletes old files from a folder on scheduleRemoves files older than a set age from a directory every day, without cron.27 Nov 2026 - Tip
resolvectl statisticsresolvectl statistics shows how often the DNS cache really hitsPrints cache hits, misses and DNSSEC verdicts from systemd-resolved so you can judge the cache.27 Nov 2026 - Tip
journalctl -u backup.service -Ijournalctl -u with -I shows only the latest run of a serviceShows the log lines of only the last run of a service, or the run before it.27 Nov 2026 - Tip
journalctl JOB=nightly-backupLogExtraFields= adds your own field to a service's log lines for journalctlTags the log lines of several services with one field so you can read them together.27 Nov 2026 - Tip
journalctl -b _SYSTEMD_UNIT=ssh.service + _COMM=sudoA lone + in journalctl combines two matches with ORCombines two journal matches with OR instead of AND, so one command shows two sources together.26 Nov 2026 - Tip
journalctl -xb -p errjournalctl -x adds an explanation under the log lines that have oneAdds a short explanation beneath journal entries that have one in the message catalog.26 Nov 2026 - Tip
journalctl --show-cursor -n 20journalctl --show-cursor and --after-cursor continue where you stoppedShows an opaque bookmark after the last line so a later run can continue from there.26 Nov 2026 - Tip
journalctl --cursor-file=/var/tmp/jc.cursor -u myappjournalctl --cursor-file reads only the new entries on every runRemembers where the last run ended in a file, so each run prints only new entries.26 Nov 2026 - Tip
journalctl /dev/sdajournalctl /dev/sda shows kernel messages about one diskShows only the journal entries about one device, such as a failing disk, for the current boot.26 Nov 2026 - Tip
journalctl -D /mnt/backup/var/log/journal -b -1journalctl -D reads the journal of another machine from a copied directoryReads journal files from any directory, for example a disk taken from a machine that no longer boots.26 Nov 2026 - Tip
journalctl -b /usr/sbin/sshdjournalctl /usr/sbin/sshd shows the logs of one program by its pathFilters the journal by a program's file path, which works when you do not know the unit name.26 Nov 2026 - Tip
journalctl -o export > journal.exportjournalctl -o export makes a text-based copy of the journal you can moveWrites journal entries with all their fields to a stream that can be stored or imported elsewhere.26 Nov 2026 - Tip
journalctl --facility=auth,authpriv --since todayjournalctl --facility=auth,authpriv shows only login and security messagesFilters the journal by syslog facility, for example login and privilege messages only.26 Nov 2026 - Tip
journalctl --file='/var/log/journal/*/system.journal' -n 20journalctl --file reads one journal file or a set of them by globReads the entries of specific journal files matching a glob instead of the system journal.26 Nov 2026 - Tip
journalctl -kfjournalctl -kf follows the kernel log liveFollows kernel messages live, handy while you plug in or remove hardware.26 Nov 2026 - Tip
journalctl -u nginx -f --no-tailjournalctl -f --no-tail follows a service and prints its whole history firstPrints all matching entries and then keeps following, instead of starting with the last ten lines.26 Nov 2026 - Tip
journalctl -g timeout -n 5journalctl -g combined with -n shows the newest matches firstCombining a text search with a line count prints the newest matches first, because the order flips.26 Nov 2026 - Tip
journalctl --header | head -20journalctl --header shows what is inside the journal filesPrints the header information of the journal files instead of log entries.26 Nov 2026 - Tip
journalctl -M mycontainer -bjournalctl -M reads the journal of a running local containerReads the journal of a running systemd container from the host by its machine name.26 Nov 2026 - Tip
[Journal]MaxLevelStore in journald.conf stops journald from storing debug messagesMakes journald drop messages above a chosen level before they are stored, such as debug.26 Nov 2026 - Tip
journalctl -m -bjournalctl -m merges the journals of all users and remote sourcesShows entries from all available journals, local and remote, in one time-ordered stream.26 Nov 2026 - Tip
journalctl --namespace=myappjournalctl --namespace reads a separate journal namespaceShows the logs of one journal namespace, or all namespaces at once with a star.26 Nov 2026 - Tip
journalctl --no-full -u myappjournalctl --no-full cuts long log lines to fit your terminalShortens log lines that do not fit the terminal width so a list stays scannable.26 Nov 2026 - Tip
journalctl --no-hostname -u ssh -n 5journalctl --no-hostname removes the host name from every lineLeaves the host name out of the short log lines to save space.26 Nov 2026 - Tip
journalctl -u ssh --no-pager | grep -c Acceptedjournalctl --no-pager sends the output straight to the next commandPrints the output directly instead of opening a pager, which suits scripts and pipes.26 Nov 2026 - Tip
journalctl -n +20journalctl -n +20 prints the oldest 20 entries instead of the newestShows the oldest journal entries, which tells you how far back the history goes.26 Nov 2026 - Tip
journalctl -u myapp -o catjournalctl -o cat prints only the message textPrints just the message text of each entry, without time stamps or host names.26 Nov 2026 - Tip
journalctl -o json --output-fields=MESSAGE,PRIORITY -n 3journalctl --output-fields keeps JSON output to the fields you nameLimits JSON or verbose output to the fields you list, which keeps scripts small and fast.26 Nov 2026 - Tip
journalctl -b -o short-delta -u myappjournalctl -o short-delta shows the gap between each line and the one beforePrints the time since the previous entry on every line, to find long pauses and timeouts.26 Nov 2026 - Tip
journalctl -o short-full -u myappjournalctl -o short-full prints time stamps with weekday, year and time zoneShows complete time stamps that you can paste straight into --since and --until.26 Nov 2026 - Tip
journalctl -b -o short-monotonicjournalctl -o short-monotonic counts seconds since bootPrints seconds since boot as the time stamp, which reads well for startup problems.26 Nov 2026 - Tip
journalctl -o short-unix -u myappjournalctl -o short-unix gives time stamps scripts can calculate withPrints the time as seconds since 1970 so a script can calculate with it.26 Nov 2026 - Tip
journalctl -o with-unit -u 'getty@*'journalctl -o with-unit shows the full unit name in front of each linePrefixes each line with the full unit name, including the instance of templated services.26 Nov 2026 - Tip
journalctl -u nginx -ejournalctl -e opens the pager at the end of the journalStarts the pager at the last entries, limited to 1000 lines of the current boot.26 Nov 2026 - Tip
journalctl -q -b -1journalctl -q hides the — Reboot — lines and permission warningsRemoves journalctl's own informational lines, so only real log entries remain.26 Nov 2026 - Tip
[Journal]RateLimitBurst in journald.conf explains why a chatty service loses log linesExplains and changes the per-service limit that makes journald drop messages in a burst.26 Nov 2026 - Tip
journalctl -r -u sshjournalctl -r puts the newest entries on topReverses the order so the newest journal entry is shown first.26 Nov 2026 - Tip
journalctl --root=/mnt/system -b -1journalctl --root reads the logs of a system mounted under a directoryReads the journal of another system that is mounted under a directory, such as a rescue mount.26 Nov 2026 - Tip
[Journal]RuntimeMaxUse in journald.conf limits a journal that lives in memoryCaps the size of the in-memory journal, which matters on small machines such as a Raspberry Pi.26 Nov 2026 - Tip
journalctl -a -u myservicejournalctl -a shows long or binary fields in fullShows complete log fields, including long ones and ones that normally appear as blob data.26 Nov 2026 - Tip
[Journal]SyncIntervalSec in journald.conf explains why the last lines before a crash may be missingSets how often journald syncs its files to disk, which decides how much a crash can lose.26 Nov 2026 - Tip
sudo journalctl --syncJournalctl --sync makes sure every log line is on disk before you continueForces journald to write all pending log data to disk and returns when it is done.26 Nov 2026 - Tip
[Journal]SystemKeepFree in journald.conf leaves disk space for everything elseTells journald to keep a minimum of disk space free, as a floor next to the size cap.26 Nov 2026 - Tip
journalctl --truncate-newline -u myappjournalctl --truncate-newline shows only the first line of multiline messagesCuts every message after its first line, so long traces do not flood the screen.26 Nov 2026 - Tip
journalctl --since today _UID=$(id -u)journalctl _UID=$(id -u) shows what your own processes loggedShows the journal entries written by processes that run under one user ID, for example your own.26 Nov 2026 - Tip
journalctl --user -u myappjournalctl --user shows the logs of the services in your own sessionShows the logs of services that run in your own user session instead of the system.26 Nov 2026 - Tip
sudo journalctl --vacuum-files=5Journalctl --vacuum-files=5 keeps only five archived journal filesKeeps a fixed number of archived journal files and removes the oldest ones.26 Nov 2026 - Tip
sudo journalctl --vacuum-time=2weeksJournalctl --vacuum-time=2weeks deletes archived journal files older than two weeksRemoves archived journal files older than a chosen time span and reports the freed space.26 Nov 2026 - Tip
journalctl --verifyjournalctl --verify checks the journal files for corruptionChecks every journal file for corruption and reports PASS or FAIL for each file.26 Nov 2026 - Tip
systemd-cat -t backup /usr/local/bin/backup.shsystemd-cat sends a script's output to the systemd journal under its own nameLogs the output of a script or command to the journal with a tag and priority you choose.26 Nov 2026 - Tip
sudo loginctl enable-linger aliceLoginctl enable-linger keeps your systemd user services running after you log outLets systemd user services start at boot and keep running when you are not logged in.26 Nov 2026 - Tip
OnFailure=notify@%n.serviceSystemd OnFailure= can start a notify unit when a service failsTriggers a notification unit automatically whenever another service ends up failed.24 Nov 2026 - Tip
systemctl show nginx.service -p MainPID --valuesystemctl show --value prints one clean systemd property for scriptsPrints a single unit property without labels, so scripts can read it directly.24 Nov 2026 - Tip
systemd-socket-activate -l 2000 --inetd -a catsystemd-socket-activate tests socket activation without writing any unitsStarts a test listener that launches a program per connection, mimicking socket activation.24 Nov 2026 - Tip
Restart=on-failureSystemd Restart=on-failure with StartLimitBurst stops a restart loopRestarts a crashed service after a pause and gives up after too many quick failures.24 Nov 2026 - Tip
[Service]AmbientCapabilities lets a non-root systemd service bind port 80Lets a service running as a normal user listen on ports below 1024 without root.24 Nov 2026 - Tip
DynamicUser=yesDynamicUser=yes gives a systemd service a throwaway user accountRuns a service as an auto-created temporary user and gives it one writable data folder.24 Nov 2026 - Tip
ProtectSystem=strictProtectSystem=strict makes the file system read-only for a systemd serviceMounts the file system read-only for one service and re-opens only the folders it needs.24 Nov 2026 - Tip
[Timer]RandomizedDelaySec spreads systemd timers so they do not all fire togetherAdds a random delay to each timer run, so many hosts do not hit a server at once.24 Nov 2026 - Tip
Persistent=truePersistent=true makes a systemd timer catch up after downtimeRuns a missed timer job once after the machine comes back instead of skipping it.24 Nov 2026 - Tip
systemd-analyze calendar "Mon..Fri *-*-* 03:30" --iterations=3systemd-analyze calendar checks an OnCalendar expression before you rely on itShows the normalised form and the next run times of a timer schedule expression.24 Nov 2026 - Tip
systemd-analyze verify /etc/systemd/system/myapp.servicesystemd-analyze verify finds typos in a unit file before you start itChecks a unit file for unknown directives and missing binaries without starting anything.24 Nov 2026 - Tip
systemd-analyze security nginx.servicesystemd-analyze security scores how locked down a service isRates the sandboxing of a service from 0 to 10 and lists the options that are still open.24 Nov 2026 - Tip
ExecStart=A systemd drop-in must clear ExecStart= before it sets a new oneReplaces the start command of a service in a drop-in by clearing the inherited one first.24 Nov 2026 - Tip
systemctl cat nginx.servicesystemctl cat prints a systemd unit together with all its drop-insPrints the unit file plus every drop-in override in application order.24 Nov 2026 - Tip
timedatectltimedatectl shows whether your server clock is in syncPrints the local time, the time zone and whether the clock is synchronised with an NTP server.23 Nov 2026 - Tip
journalctl --since "1 hour ago"journalctl --since "1 hour ago" cuts the log down to what just happenedShows only the log lines of the last hour, or any period you give it.23 Nov 2026 - Tip
systemd-analyze blamesystemd-analyze blame shows which services slow down your bootLists every service by how long it took to start during the last boot, slowest first.21 Nov 2026 - Tip
[Resolve]Turn on DNS over TLS in systemd-resolvedMakes systemd-resolved send all DNS queries over an encrypted TLS connection.10 Sep 2026 - Tip
resolvectl flush-cachesresolvectl flush-caches clears the DNS cache on LinuxEmpties the local DNS cache of systemd-resolved without restarting the service.23 Aug 2026 - Tip
resolvectl query example.comresolvectl query shows how a name was resolvedResolves a name through systemd-resolved and shows which link, protocol and cache gave the answer.5 Aug 2026 - Tip
systemctl list-timers --allsystemctl list-timers is cron's answer inside systemdShows every scheduled systemd timer with its last and next run time.9 Jul 2026 - Tip
systemd-analyze blamesystemd-analyze blame shows what slows down your bootLists services by how long they took to start, so you can see what slows the boot.4 Jul 2026 - Tip
sudo systemctl edit nginxSystemctl edit changes a service without touching the originalLets you change a systemd service in a separate file that updates will not overwrite.24 Jun 2026 - Tip
journalctl --disk-usagejournalctl --vacuum-size caps how much log space you keepShrinks the systemd journal to a size you pick by deleting the oldest logs.16 Jun 2026 - Tip
systemd-run --user --scope -p MemoryMax=2G -p CPUQuota=200% make -j8systemd-run --user --scope applies resource limits to any commandRuns a command in a temporary cgroup with memory and CPU limits, no unit file needed.26 Apr 2026 - Tip
systemctl show nginx.service -p MemoryMax -p CPUQuotaPerSecUSecsystemctl set-property sets a systemd resource limit on a running serviceApplies memory and CPU limits to a running service, temporarily or permanently, without editing files.25 Apr 2026 - Tip
systemd-analyze critical-chainsystemd-analyze critical-chain shows what the boot waited forDisplays the chain of units that actually held up the boot, with start times.24 Apr 2026 - Tip
sudo hostnamectl set-hostname nas01Hostnamectl set-hostname renames a linux machine the proper wayChanges the hostname of a systemd machine at once and keeps it after a reboot.12 Apr 2026
Network3
- Tip
resolvectl dns eth0 192.168.1.53resolvectl revert undoes the DNS settings you changed by hand on a linkResets the DNS settings of one network interface back to its defaults.28 Nov 2026 - Tip
After=network-online.targetWants= plus After=network-online.target makes a service wait for a working networkMakes a service start only once the network is really up, not just started.27 Nov 2026 - Tip
resolvectl dns wg0 10.0.0.1A route-only domain gives you split DNS in one commandSends DNS queries for one domain to a VPN's DNS server and leaves the rest alone.4 Sep 2026
Docker3
- Tip
if systemctl is-active --quiet docker.service; thenSystemctl is-active --quiet gives a script a plain yes or noReturns exit code 0 when a unit is active, so shell scripts can test a service without parsing text.28 Nov 2026 - Tip
journalctl -u docker -f -n 0journalctl -f -n 0 follows a log and prints only what arrives from now onFollows the journal and shows only new entries, without the usual last ten lines.26 Nov 2026 - Tip
systemctl list-dependencies --reverse docker.servicesystemctl list-dependencies --reverse shows what depends on a systemd unitShows which units depend on a given unit, before you stop or disable it.24 Nov 2026
Media1
Nothing matches.