Views:
11,454
Votes: 3
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1144565
Title:
How to restart X Window Server from command line and be able to login again afterwards?
ID:
/2019/05/19/How-to-restart-X-Window-Server-from-command-line-and-be-able-to-login-again-afterwards_
Created:
May 19, 2019
Edited: April 13, 2021
Upload:
April 8, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
This old Q&A: How to restart GNOME Shell from command line?6 may have the answers for you.
Initially these used to work for people:
- The easiest way is to Alt+F2 and type
r
then ↵. - The command to replace the gnome-shell would be
gnome-shell --replace
.
Now days this seems to be the only solution:
- You can also do a
killall -3 gnome-shell
.
Note: This Q&A focuses on restarting gnome display manager without loosing all work and going back to Login screen.
What does Alt+F2 do?
From: 13 Keyboard Shortcut Every Ubuntu 18.04 User Should Know
10. Alt+F2: Run console
This is for power users. If you want to run a quick command, instead
of opening a terminal and running the command there, you can use
Alt+F2 to run the console.