Back to cert prep

Practice area

LPIC-1 102: User Interfaces and Desktops

Recognize graphical Linux components, inspect session/display state, and support accessibility or remote desktop needs without breaking login.

Linux One Liners is an independent study and practice resource. It is not affiliated with, endorsed by, or approved by LPI, The Linux Foundation, CompTIA, or any certification provider. This site does not provide exam dumps or real exam questions.

Source status

Source status: LPI LPIC-1 overview verified July 3, 2026. Current version 5.0; exams 101-500 and 102-500.

This page paraphrases study areas into command practice. It does not copy official objective text wholesale and is not an exam dump.

Plain-English goal

Practice area: X11, display managers, desktop sessions, remote graphical access, Wayland awareness, and accessibility. Exam/domain: 102-500.

read the situation

Command, output, and next step

Command anatomy

printf 'DISPLAY=%s\nWAYLAND_DISPLAY=%s\nXDG_SESSION_TYPE=%s\n' "$DISPLAY" "$WAYLAND_DISPLAY" "$XDG_SESSION_TYPE"
printf
the command family
flags
change output shape or scope
target
the file, service, user, mount, or host being inspected
output
evidence you must explain before changing state

Annotated output

Usage: command [OPTION]... TARGET
Try 'command --help' for common flags.
Try 'man command' for full reference.

What to notice

Usage
the command shape and expected target
--help
quick option reference
man
full local manual page when installed

Safe vs unsafe move

Common wrong move

Treating a practice command as a permission to make a broad production change.

Next safe command

command --help

Troubleshooting ladder

  1. Name the symptom.
  2. Inspect read-only state.
  3. Find the owner, service, file, device, mount, or route.
  4. Read the decisive output field.
  5. Choose the next narrow command.
  6. Avoid broad or destructive changes.
  7. Make the smallest justified change if required.
  8. Verify and record what changed.

How to get help

  1. Know the commandUse command --help, then man command for the full reference.
  2. Know the conceptUse apropos keyword or man -k keyword to discover command names.
  3. Maybe a shell builtinUse type command, command -V command, then help command.
  4. Service behaviorUse systemctl status service and journalctl -u service before restarting.
  5. Package ownershipUse dpkg -S, rpm -qf, or the distro package tool for the installed file.

Study plan

  1. Learn the roles of display server, display manager, desktop environment, window manager, and session bus.
  2. Practice identifying whether a user is in a graphical session, SSH session, Wayland session, or X11 session.
  3. Review remote graphical access as a security-sensitive feature: X11 forwarding, VNC/RDP-style tools, and access control.
  4. Treat accessibility as operational support: high contrast, screen readers, magnifiers, keyboard navigation, sticky keys, and input alternatives.

Command labs

Run these in a lab shell or disposable machine first. The point is to explain the output, not just memorize the command.

Inspect graphical session variables

printf 'DISPLAY=%s\nWAYLAND_DISPLAY=%s\nXDG_SESSION_TYPE=%s\n' "$DISPLAY" "$WAYLAND_DISPLAY" "$XDG_SESSION_TYPE"

Session variables should show whether the shell is attached to graphical display context.

Annotated output
Usage: command [OPTION]... TARGET
Try 'command --help' for common flags.
Try 'man command' for full reference.

What to notice: Usage, --help, man.

Next safe command: command --help

List login sessions

loginctl list-sessions 2>/dev/null && loginctl show-session "$XDG_SESSION_ID" -p Type -p State -p Remote 2>/dev/null

Session type, state, and remote/local status should be visible on systemd hosts.

Annotated output
Usage: command [OPTION]... TARGET
Try 'command --help' for common flags.
Try 'man command' for full reference.

What to notice: Usage, --help, man.

Next safe command: command --help

Check display manager service

systemctl status display-manager --no-pager 2>/dev/null | sed -n '1,20p'

The active display-manager unit should be visible if the system uses one.

Annotated output
nginx.service - A high performance web server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since Fri 2026-07-03 10:12:04 CDT
Jul 03 10:12:04 web01 nginx[2310]: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (13: Permission denied)

What to notice: Loaded, Active, Result, log message.

Next safe command: nginx -t

command families

Commands to practice

  • echo $DISPLAY
  • loginctl
  • ps
  • systemctl
  • xrandr
  • xhost
  • ssh -X
  • gsettings

Related drills

Flashcards

What is a display manager?

The login manager that starts graphical sessions, such as GDM, SDDM, or LightDM.

Why is X11 forwarding security-sensitive?

It allows graphical clients over SSH and can expose interaction between hosts if misused.

What variable often indicates an X11 display?

DISPLAY.

Why should accessibility settings be part of admin awareness?

They can determine whether users can log in, read, navigate, and operate systems effectively.

Quick quiz

Check the reasoning locally in your browser. Answers are not sent anywhere.

Which variable commonly points to an X11 display?
Show answer

Answer: DISPLAY

Why: DISPLAY identifies the X display endpoint.

  • PATH: That does not answer the question the output is asking you to prove first.
  • HOME: That does not answer the question the output is asking you to prove first.
  • LANG: That does not answer the question the output is asking you to prove first.
Which command can show local and remote login sessions?
Show answer

Answer: loginctl list-sessions

Why: loginctl reports sessions on systemd systems.

  • mkfs.ext4: That destroys or removes state before the evidence is understood.
  • apt purge: That destroys or removes state before the evidence is understood.
  • tar -czf: That does not answer the question the output is asking you to prove first.
What should you avoid doing blindly on a desktop host?
Show answer

Answer: Restarting display-manager during active work

Why: Restarting the display manager can log users out.

  • Reading session variables: That does not answer the question the output is asking you to prove first.
  • Listing sessions: That does not answer the question the output is asking you to prove first.
  • Checking service status: That does not answer the question the output is asking you to prove first.

Self-test before moving on