Note: These instructions are for Ubuntu.
To rename a file, the easiest way is to right-click on the file, and choose “Rename...”
You can now type a new name and press Enter: