重命名文件或文件夹
As with other file managers, you can use Files to change the name of a file or folder.
重命名文件或文件夹
右击文件或文件夹,然后选择重命名,或选择文件,然后按 F2 键。
Type the new name and press Enter or click Rename.
您还可以从属性窗口重命名文件。
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.
有效的文件名字符
You can use any character except the / (slash) character in file names. Some devices, however, use a file system that has more restrictions on file names. Therefore, it is a best practice to avoid the following characters in your file names: |, \, ?, *, <, ", :, >, /.
If you name a file with a . as the first character, the file will be hidden when you attempt to view it in the file manager.
常见问题
- 该名称已被使用
-
You cannot have two files or folders with the same name in the same folder. If you try to rename a file to a name that already exists in the folder you are working in, the file manager will not allow it.
文件和文件夹名称区分大小写。例如,File.txt 和 file.txt 是两个不同的名称。需要注意的是这种做法可能会造成您日后识别困难,因此并不推荐使用。
- 文件名称过长
On some file systems, file names can have no more than 255 characters in their names. This 255 character limit includes both the file name and the path to the file (for example, /home/wanda/Documents/work/business-proposals/…), so you should avoid long file and folder names where possible.
- 重命名的选项是灰色的
如果重命名变灰,您将无权重命名文件。一般,如果您没有重命名文件的正确权限,您就不应重命名文件。请参阅设定文件权限。