File: files-rename.page

package info (click to toggle)
gnome-user-docs 48.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 142,176 kB
  • sloc: xml: 829; makefile: 532; sh: 514
file content (103 lines) | stat: -rw-r--r-- 4,851 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="files-rename" xml:lang="zh-CN">

  <info>
    <link type="guide" xref="files#common-file-tasks"/>
    <link type="seealso" xref="files-rename-multiple"/>
    <link type="seealso" xref="files-rename-music-metadata"/>

    <revision version="gnome:47" date="2024-08-31" status="candidate"/>

    <credit type="author">
      <name>GNOME 文档项目</name>
      <email>gnome-doc-list@gnome.org</email>
    </credit>
    <credit type="author">
      <name>Shaun McCance</name>
      <email>shaunm@gnome.org</email>
    </credit>
    <credit type="author">
      <name>Jim Campbell</name>
      <email>jwcampbell@gmail.com</email>
    </credit>
    <credit type="editor">
      <name>Michael Hill</name>
      <email>mdhillca@gmail.com</email>
    </credit>
    <credit type="editor">
      <name>David King</name>
      <email>amigadave@amigadave.com</email>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>更改文件或文件夹名称。</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>TeliuTe</mal:name>
      <mal:email>teliute@163.com</mal:email>
      <mal:years>2011, 2012</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>tuberry</mal:name>
      <mal:email>orzun@foxmail.com</mal:email>
      <mal:years>2021</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Victor_Trista</mal:name>
      <mal:email>ljlzjzm@hotmail.com</mal:email>
      <mal:years>2023</mal:years>
    </mal:credit>
  </info>

  <title>重命名文件或文件夹</title>

  <p>和其他文件管理器一样,您可以使用<app>文件</app>来重命名文件或文件夹。</p>

  <steps>
    <title>重命名文件或文件夹:</title>
    <item><p>右击文件或文件夹,然后选择<gui>重命名</gui>,或选择文件,然后按 <key>F2</key> 键。</p></item>
    <item><p>输入新名称,然后按 <key>Enter</key> 或点击<gui>重命名</gui>。</p></item>
  </steps>

  <p>当您重命名文件时,只会选取文件名称的第一部分,而不包括文件扩展名(最后一个 <file>.</file> 后的部分)。扩展名通常表示文件的类型(例如,<file>file.pdf</file> 是一个PDF文档),通常不需要改变。如果一定要更改扩展名,可以选取整个文件名后更改。</p>

  <note style="tip">
    <p>如果重命名错误,或不合适,您可以撤销重命名。要撤销操作,立即点击侧边中的菜单按钮,选择<gui>撤销重命名</gui>,或按 <keyseq><key>Ctrl</key><key>Z</key></keyseq>,即可恢复其之前的名称。</p>
  </note>

  <section id="valid-chars">
    <title>有效的文件名字符</title>

    <p>在文件名中,您可以使用除 <file>/</file>(斜杠)以外的任何字符。不过有些设备使用的<em>文件系统</em>对文件名有更多限制。因此文件名中最好应避免使用以下字符:<file>|</file>、<file>\</file>、<file>?</file>、<file>*</file>、<file>&lt;</file>、<file>"</file>、<file>:</file>、<file>&gt;</file>、<file>/</file>。</p>

    <note style="warning">
    <p>如果您以 <file>.</file> 作为首字符来命名文件,该文件将在使用文件管理器浏览文件时被<link xref="files-hidden">隐藏</link>。</p>
    </note>

  </section>

  <section id="common-probs">
    <title>常见问题</title>

    <terms>
      <item>
        <title>该名称已被使用</title>
        <p>在同一文件夹中不能有同名的文件或文件夹。文件管理器也不允许您将文件重命名为其所在文件夹中已存在的其他名称。</p>
        <p>文件和文件夹名称区分大小写。例如,<file>File.txt</file> 和 <file>file.txt</file> 是两个不同的名称。需要注意的是这种做法可能会造成您日后识别困难,因此并不推荐使用。</p>
      </item>
      <item>
        <title>文件名称过长</title>
        <p>在某些文件系统中,文件名不能超过255个字符,限制的字符数既包括文件名又包括文件路径(例如,<file>/home/wanda/Documents/work/business-proposals/…</file>),因此您应当尽可能避免文件和文件夹名称过长。</p>
      </item>
      <item>
        <title>重命名的选项是灰色的</title>
        <p>如果<gui>重命名</gui>变灰,您将无权重命名文件。一般,如果您没有重命名文件的正确权限,您就不应重命名文件。请参阅<link xref="nautilus-file-properties-permissions"/>。</p>
      </item>
    </terms>

  </section>

</page>