As with other file managers, you can use Files to change the name of a file or folder.
To rename a file or folder:
Right-click on the item and select Rename, or select the file and press F2.
Type the new name and press Enter or click Rename.
You can also rename a file from the properties window.
When you rename a file, only the first part of the name of the file is selected, not the file extension (the part after the last .). The extension normally denotes what type of file it is (for example, file.pdf is a PDF document), and you usually do not want to change that. If you need to change the extension as well, select the entire file name and change it.
If you renamed the wrong file, or named your file improperly, you can undo the rename. To revert the action, immediately click the menu button in the toolbar and select Undo Rename, or press Ctrl+Z, to restore the former name.