Nautilus – How to Add Refresh Option in Right Click Menu in Ubuntu 16.04

16.04nautilus

I'd like to have an option on the right-click menu to refresh Nautilus.

How can I achieve that?

Best Answer

Refresh button for Nautilus on right-click menu

enter image description here

  • You will need a to download xdotool and nautilus-actions:

    sudo apt install xdotool nautilus-actions
    
  • Open nautilus-actions and do the following:

    1. Create a new action and change it's name to Refresh
    2. On the Action tab, enable Display item in location context menu
    3. On the Command tab set the Path to /usr/bin/xdotool, Parameters to key F5.
    4. Save your changes.
    5. Now go to Nautilus Action's Edit > Preferences and get both options at Runtime preferences > Nautilus menu layout deselected.
    6. Open a terminal and run nautilus -q
    7. Done! Open Nautilus and try it out :)