Is there command in Ubuntu that is equivalent on restarting explorer.exe in Windows?
1 Answer
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
-
1
-
@tigerjack89 later kills everything, kicks you back to login screen. Effectivelly restarts your desktop session Jun 8, 2015 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. Jun 8, 2015 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 Jun 8, 2015 at 17:08
-
sudo service lightdm restart
is probably equivalent toctrl + alt + backspace
in most distros– DavideJun 8, 2015 at 17:26