Is there command in Ubuntu that is equivalent on restarting explorer.exe in Windows?
Asked
Active
Viewed 1.3k times
4
-
What's your goal, basically ? – Sergiy Kolodyazhnyy Jun 08 '15 at 17:06
1 Answers
8
If your goal is to restart file manager , then pkill nautilus && nohup nautilus 2> /dev/null &
.
If you want to restart your desktop session, sudo service lightdm restart
. This command kills everything, kicks you back to login screen. Effectively restarts your graphical session

Sergiy Kolodyazhnyy
- 105,154
- 20
- 279
- 497
-
1
-
@tigerjack89 later kills everything, kicks you back to login screen. Effectivelly restarts your desktop session – Sergiy Kolodyazhnyy Jun 08 '15 at 17:05
-
1yep, this is my point. I think you should add this to your answer because it is very different from killing explorer.exe in Windows. – tigerjack Jun 08 '15 at 17:07
-
@tigerjack89 I've already mentioned that it restarts desktop session in my answer, but I guess I can add that bitt,too – Sergiy Kolodyazhnyy Jun 08 '15 at 17:08
-
sudo service lightdm restart
is probably equivalent toctrl + alt + backspace
in most distros – Davide Jun 08 '15 at 17:26 -
-
@Serg I know. I just thought it was worth mentioning it, as it's a standard way to restart X. However, I remember having to change something in ubuntu for it to work... – Davide Jun 09 '15 at 08:48