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
- Name the symptom.
- Inspect read-only state.
- Find the owner, service, file, device, mount, or route.
- Read the decisive output field.
- Choose the next narrow command.
- Avoid broad or destructive changes.
- Make the smallest justified change if required.
- Verify and record what changed.
How to get help
- Know the commandUse
command --help, thenman commandfor the full reference. - Know the conceptUse
apropos keywordorman -k keywordto discover command names. - Maybe a shell builtinUse
type command,command -V command, thenhelp command. - Service behaviorUse
systemctl status serviceandjournalctl -u servicebefore restarting. - Package ownershipUse
dpkg -S,rpm -qf, or the distro package tool for the installed file.
Study plan
- Learn the roles of display server, display manager, desktop environment, window manager, and session bus.
- Practice identifying whether a user is in a graphical session, SSH session, Wayland session, or X11 session.
- Review remote graphical access as a security-sensitive feature: X11 forwarding, VNC/RDP-style tools, and access control.
- 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 $DISPLAYloginctlpssystemctlxrandrxhostssh -Xgsettings
Related command pages
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.