Ubuntu Desktop - Rename a file or folder

Ubuntu Desktop - Rename a file or folder

  • [1. Valid characters for file names](#1. Valid characters for file names)
  • [2. Common problems](#2. Common problems)
  • References

To rename a file or folder:

  1. Right-click on the item and select Rename, or select the file and press F2.
  2. Type the new name and press Enter or click Rename.
  • right mouse click on the desired data file -> Rename...
  • left mouse click on the desired data file -> F2

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.

1. Valid characters for file names

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.

2. Common problems

  • The file name is already in use

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 and folder names are case sensitive, so the file name File.txt is not the same as FILE.txt. Using different file names like this is allowed, though it is not recommended.

  • The file name is too long

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/yongqiang/yongqiang_work/darknet/examples/...), so you should avoid long file and folder names where possible.

  • The option to rename is grayed out

If Rename is grayed out, you do not have permission to rename the file. You should use caution with renaming such files, as renaming some protected files may cause your system to become unstable.

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

[2] Rename a file or folder, https://help.ubuntu.com/stable/ubuntu-help/files-rename.html.en

相关推荐
Yongqiang Cheng6 个月前
Ubuntu Desktop Server - Resource temporarily unavailable
resource·ubuntu desktop·ubuntu server·temporarily·unavailable
Yongqiang Cheng6 个月前
Ubuntu Desktop 免费的文件 / 目录差异比较工具 (Beyond Compare 为收费软件)
beyond compare·ubuntu desktop·免费的文件差异比较工具·免费的目录差异比较工具
Yongqiang Cheng6 个月前
Ubuntu Desktop 安装有道词典
ubuntu desktop·安装有道词典
Yongqiang Cheng6 个月前
Windows 远程访问 Ubuntu Desktop - 虚拟网络控制台 (Virtual Network Console,VNC)
windows·vnc·远程访问·ubuntu desktop·虚拟网络控制台
Yongqiang Cheng6 个月前
Ubuntu Desktop 更改默认应用程序 (Videos -> SMPlayer)
ubuntu desktop·更改默认应用程序·videos smplayer
Yongqiang Cheng6 个月前
Ubuntu Desktop - Updates (不升级到新版本)
ubuntu desktop·updates·不升级到新版本
Yongqiang Cheng7 个月前
Ubuntu Desktop - Desktop
ubuntu desktop
Yongqiang Cheng8 个月前
Ubuntu Desktop - Screenshot (截图工具)
ubuntu desktop·screenshot·截图工具
Yongqiang Cheng8 个月前
Ubuntu Desktop 显示文件路径
ubuntu desktop·显示文件路径