Linux command
gdm-restart 命令
安全
May affect permissions or system state. Check the target first.
命令示例
Restart GNOME Display Manager
sudo gdm-restart
说明
gdm-restart restarts the GNOME Display Manager service, terminating all active graphical user sessions and returning to the login screen. This command is useful for applying configuration changes, recovering from display issues, or resetting the graphical environment without a full system reboot. When executed, all logged-in users will be forcibly logged out, and any unsaved work will be lost. The display manager then reinitializes, presenting a fresh login screen. On modern systems using systemd, this is typically a wrapper for "systemctl restart gdm".
FAQ
What is the gdm-restart command used for?
gdm-restart restarts the GNOME Display Manager service, terminating all active graphical user sessions and returning to the login screen. This command is useful for applying configuration changes, recovering from display issues, or resetting the graphical environment without a full system reboot. When executed, all logged-in users will be forcibly logged out, and any unsaved work will be lost. The display manager then reinitializes, presenting a fresh login screen. On modern systems using systemd, this is typically a wrapper for "systemctl restart gdm".
How do I run a basic gdm-restart example?
Run `sudo gdm-restart` in a terminal, then adjust file names, paths, flags, or remote targets for your system.