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
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