gvfs命令与常见命令(例如cat,ls,cp)有什么区别?


12

我最近发现了以下gvfs命令

gvfs-cat (1)         - Concatenate files
gvfs-copy (1)        - Copy files
gvfs-info (1)        - Show information about files
gvfs-ls (1)          - List files
gvfs-mime (1)        - Get or set mime handlers
gvfs-mkdir (1)       - Create directories
gvfs-monitor-dir (1) - Monitor directories for changes              
gvfs-monitor-file (1) - Monitor files for changes
gvfs-mount (1)       - Mounts the locations
gvfs-move (1)        - Copy files
gvfs-open (1)        - Open files with the default handler
gvfs-rename (1)      - Rename a file
gvfs-rm (1)          - Delete files
gvfs-save (1)        - Save standard input
gvfs-set-attribute (1) - Set file attributes
gvfs-trash (1)       - Move files or directories to the trash
gvfs-tree (1)        - List contents of directories in a tree-like format

现在,通过公共命令怎么做这些不同喜欢catcpmkdir,等。

换句话说,以下命令分别有什么区别:

  • catgvfs-cat
  • cpgvfs-copy
  • mkdirgvfs-mkdir等等。

或者什么gvfs-*命令代表

Answers:


15

gvfs-... 类型命令可以基于url处理远程位置。

来自man gvfs-cat

gvfs-cat的工作方式与传统的cat实用程序相同,但是使用gvfs位置而不是本地文件:例如,您可以使用smb://server/resource/file.txt之类的位置。


例如

您可以gvfs-cat用来执行以下操作:

gvfs-cat smb://server/resource/file.txt

但是cat只能用于执行以下操作:

$ cat /path/to/some/file.txt

cat只能访问本地文件,这对于本地驱动器查找很有用。gvfs-cat用于具有有效GVFS网址的远程查找。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.