操作文件和文件夹

打开文件

当您打开一个文件,文件管理器会为该类型的文件执行相应的默认动作。例如,打开一个文本文件将会在默认的文本编辑器中将其显示出来,而打开一个图像文件则会在默认的图像查看器中显示该幅图片。

文件管理器检查该文件的扩展名以确定该文件的类型。如果文件没有一个已知的扩展名,文件管理器将会检查文件的内容。

执行默认动作

要对文件执行默认的动作,直接双击该文件。例如,音频文件的默认动作是使用默认的音乐播放器进行播放,在上述例子中,您可以双击该音频文件以使用默认的音乐播放器打开并播放该文件。

您可以设置 Thunar 首选项以使用单击执行默认动作。更多信息,请查看 “行为首选项”一节

执行非默认动作

要执行一个非默认动作,选中该文件。在 文件 菜单中的 以...打开 选项中或者右键菜单的 以...打开 子菜单中选择您想要执行的动作。

添加动作

要对一个类型的文件添加动作,请按以下步骤操作:

  1. 在文件管理器主区域中选择您要添加动作到该类型的一个文件。

  2. 从主菜单中选择 文件以其它应用程序打开...

  3. 以...打开 对话框中选择一个应用程序,或者选择 使用自定义命令 然后浏览并选择您需要的程序以使用该程序打开该类文件。

您选择的动作将会被添加到该类文件的动作列表中。如果您选中 作为打开此类文件的默认程序 选项或者在此之前该类文件没有默认动作,新添加的动作将会作为该类文件的默认动作。

您还可以通过 文件属性... 菜单项下的 以...打开 按钮添加动作。

修改动作

要修改一个或者一类文件使用的动作,请按以下步骤操作:

  1. 在主区域中,选中您要修改该类型动作的一个文件。

  2. 在主菜单中选择 文件属性...

  3. Select the new default action using the Open With button or add a new action by choosing Open With Other Application... from the drop down menu.

To remove a previously added action for a file type, bring up the Open With dialog as described above, right-click the action you want to remove and choose Remove Launcher.

File Properties

The file properties window shows more information about any file or folder in the file manager. With this window, you can also do the following:

  • Change the icon for special files, such as application launchers and URL links.

  • Add or remove emblems for a file or folder.

  • Change the UNIX file permissions for a file or folder.

  • Choose which application is used to open a file and other files of the same type.

File Properties

To open the file properties window, perform the following steps:

  1. Select the file or folder whose properties you want to examine or change. You cannot select multiple items at once and display the properties that are in common to all items currently.

  2. Do one of the following:

    • 在主菜单中选择 文件属性...

    • Right-click the selected item and choose Properties... from the context menu.

    • Press Alt+Return.