Home  >  Article  >  System Tutorial  >  How to restart a stuck desktop in Linux? Two ways to refresh your Linux desktop

How to restart a stuck desktop in Linux? Two ways to refresh your Linux desktop

WBOY
WBOYforward
2024-01-08 17:09:061063browse

Under deepin linux, sometimes you will encounter desktop lag. At this time, you can also use a similar method. You can refer to this experience for details.

Method 1. Set shortcut key operations

1. Restarting the desktop is similar to the F5 refresh function on Windows. The operations are often very frequent. It is troublesome to enter commands every time. You can add a shortcut key for this operation. First click on "Control Center" on the taskbar.

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

2. Select "Keyboard and Language" in the control center.

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

3. After entering, click " Shortcut Key".

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

4. Scroll to the bottom and you will see the custom shortcut keys added.

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

5. Click Start to add a custom shortcut key, and set the command to the following command

systemctl restart lightdm

The setting is completed, just save it.

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

6. At this time, press the F5 key, and the prompt as shown below will appear. Enter the password to restart and refresh the desktop.

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

Method 2, command operation

1. First, click "Launcher" on the taskbar, find Deepin Terminal and open the terminal.

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

2. After opening the terminal, you can restart the desktop through the following command.

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

3. You can also use the service script to operate, and the effect is the same.

linux桌面卡死怎么重启? linux重启刷新桌面的两种方法

In Windows systems, if the desktop is stuck, you can improve system performance by re-running the explore.exe process. For Linux, you can only use the above method. I hope it can help everyone. Please continue to pay attention to this site.

related suggestion:

How to use vi editing software in Linux?

What should I do if the Chrome address bar input is stuck under Linux?

How to restart the network card in Linux system? Three tutorials for restarting the network card in Linux

The above is the detailed content of How to restart a stuck desktop in Linux? Two ways to refresh your Linux desktop. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete