How to refresh desktop in Ubuntu without rebooting PC

Got a Frozen desktop? Try restarting Ubuntu instead of rebooting.


Most Linux distributions including Ubuntu uses a desktop environment over the base Linux system. Since no operating system is perfect, it’s just matter of time when you may experience sluggish performance or may be your desktop environment is behaving weird. Usually, rebooting the PC is the first thing that comes to mind which magically fixes the issue somehow.

Why to Refresh the Ubuntu Desktop?

You don’t need to reboot entire PC everytime if you experience sluggish performance or may be if the desktop got non-responsive. Refreshing desktop environment is sometimes equally as effective as reboot. It saves you bunch of time and you don’t need to kill the applications you are running. By refreshing the desktop, you’re only restarting the desktop environment. It’s also useful when you want to see the effects of an software update to the desktop.

How to Refresh Ubuntu desktop?

Now that you know the benefits of refreshing the Ubuntu desktop, let’s take a look at how to do it on various Ubuntu versions.

On Ubuntu GNOME

GNOME is default environment starting from Ubuntu 17.10. So, this segment of article may be the highest referred now and near future!


Method 1: From GUI 

I would first try this quick GUI way to see if restarts GNOME, but in case your desktop is fully frozen and doesn’t respond, you should try method 2.

Step 1) Press ALT and F2 simultaneously. In modern laptop, you may need to additionally press the Fn key too (if it exists) to activate Function keys.

Step 2) Type r in the command box and press enter.


Restarting GNOME Ubuntu 17.10
Restarting GNOME Ubuntu 17.10

GNOME should restart. If not, try Method 2.

Method 2: From Terminal

Step 1) Launch ‘Terminal’.


Step 2) Enter the following command and press enter.

gnome-shell --replace & disown

–replace function resets the running window manager, which is GNOME in this case.

Resetting GNOME from Terminal in Ubuntu 17.10
Resetting GNOME from Terminal in Ubuntu 17.10

On Ubuntu Unity

If you are running older versions of Ubuntu with the Unity desktop environment, the command line is obviously different. Proceed as follows:

Step 1) Press ALT and F2 keys simultaneously.

Step 2) Enter unity command to restart Unity desktop.


That’s it!

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities, especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. I hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!


  1. Totally not helpful. When it’s frozen, it’s frozen. Nothing works. Cannot move the pointer. Neither Alt=F2 nor Ctrl+alt+T nor alt+f4 does anything.

    • This article helps you in restarting the UI portion of the desktop that can sometime get frozen. So, trying this can rescue if that’s the case. If it doesn’t work, the system froze due to some other reason and this guide doesn’t apply for it. Since no one will be sure as to what actually froze the system, it’s the first ‘try’ that might do the trick! If not, the usual ‘restart’ is always there.

  2. This helped me !
    On my desktop ubuntu 16.04 running Unity, got some menu window upon right-mouse click, it didn’t complete thing so it just displayed a translucent rectangular window instead.
    So i just re-run Unity as u described and voila! Previously when this happened, i just had to reboot to clear thing up, which was not that efficient way


  3. Does not work in Ubuntu 19.04-19.10-or the 19.10 Studio versions of Ubuntu Alt+F2 will only open the application launcher and nothing more. I hate that you learn the short cuts and how to use them and they get tossed away with the next version just because someone thinks they know better and then in the next version or latter down the “New and Improved” road guess what will be back as soon as they figure out we all hate or they think they can sneak it past as a New Ad-don and make a big deal out something that has already been their done that like everything else Linux has come up with in the last 30 years. Its all rehashing the exact same projects over and over with nothing really new that is why its so prone to Malware and Viruses now nothing new just cobbled on to old crap from before and recycled trash that never worked before for very long. Why someone does not start from scratch and fix this garbage make it work like it should I will never understand. Its bad work cobbled onto worse patches onto even nastier works by bling idiots.

Leave a Reply to BIG HORSE Cancel reply

Please enter your comment!
Please enter your name here




Top 20 Git Commands with Practical Examples

If you are here reading this post, there is a high probability that you have heard or interacted with Github, and you now want to learn Git. Before we continue with showing you some of the cool Git commands, let's understand the difference between Git and GitHub.

Top 10 New Features in Linux Kernel 5.7

Linus Torvalds has announced the release of Linux Kernel 5.7 after seven weeks of development. The release announcement comes as a piece of exciting news as it brings a host of new features for the hardware manufacturers as well as the developers.

How to install CMake on Ubuntu

CMake is a cross-platform free and open-source software tool designed to build, test, and package the software. CMake uses a simple platform and compiler-independent configuration files to control the software compilation process.

How to install Lightworks on Ubuntu

Even though Linux may not get a native installer of video editing software like Adobe Premiere or Final Cut Pro, that doesn't mean there are no industry standards tools available. Lightworks is non-linear editing (NLE) video mastering app for Windows, Linux, and macOS. Installing it on Ubuntu is simple due to deb package availability.

How to install DaVinci Resolve on Fedora

Davinci Resolve is a professional application used for color correction, video editing, visual effects, and motion graphics. It is one of the extensively used software by movie industries located in Hollywood.

The 10 Best Programming Languages for Hacking

One of the significant entities we have in Cyber Security is Ethical Hacking (ETH). It is the process of detecting and finding flaws or vulnerabilities in a system that a hacker would exploit.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

All about Ubuntu editions and which version should you use?

Ubuntu is one of the most popular Linux distributions developed and released by Canonical, and not without reason. It has very enriched repositories, with support for all the programs you could ever need.

5 Best Notepad++ Alternatives for Linux

Notepad++ has been the de facto standard for source code editors for nearly 16 years, almost since its creation in 2003.  For Windows users, that is.  For years, Linux users had no source code editor that compared to Notepad++ with all its bells and whistles, such as code folding, scripting, markup languages, syntax highlighting, auto-completion for programming (limited).

6 ways to find out your Linux file system type

Any Operating system in the market whether its Windows, Linux, Unix, macOS, and any other, must be able to access and manage files and data on storage devices.

5 ways to check if a Port is open on a remote Linux PC

There is an ample number of ways to check for any open ports on a remote Linux PC. Knowing open ports on a Linux machine helps system administrators to connect to the remote PC for troubleshooting system and cloud server issues.