Ubuntu systems lacks the “Refresh” context menu present in Windows, but you can make one so you wont be troubled hitting F5 manually everytime you want to refresh the desktop (or folder).
1. First, you will be needing packages nautilus-actions and lineakd.
sudo apt-get install nautilus-actions lineakd
2. Now, create a nautilus scripts directory. Example
3. Make a script file
4. Add the following lines of code
xsendkeycode 71 1
xsendkeycode 71 0
5. Now save the file and change it to be executable
chmod u+x /opt/nautilus-scripts/refresh
6. Open up the nautilus-actions program at System -> Preferences -> Nautilus Actions Configuration.
7. Click Add:
* In Menu Item & Action:
Match Case: selected
Appears if selection contains: Both
8. Uncheck the “File / Local Files” box. Save and restart the system.