Linux command
gvfs-copy 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Copy a local file
gvfs-copy [source] [destination]
Copy a file from a remote SMB share
gvfs-copy smb://server/share/file.txt [local-file]
Copy a file from an FTP server
gvfs-copy ftp://server/path/file.txt [local-file]
Copy with progress indicator
gvfs-copy -p [source] [destination]
Prompt before overwriting an existing file
gvfs-copy -i [source] [destination]
Copy while preserving file attributes
gvfs-copy --preserve [source] [destination]
说明
gvfs-copy copies files using GVFS (GNOME Virtual File System). It supports local files and remote URIs including SMB, FTP, SFTP, DAV, and other protocols supported by GVFS backends. The tool handles network protocols transparently, copying files across different backends. It integrates with GNOME's file system abstraction layer. This command is deprecated and has been replaced by gio copy, which provides the same functionality.
参数
- -p, --progress
- Show a progress indicator during the copy operation.
- -i, --interactive
- Prompt before overwriting an existing destination file.
- --preserve
- Preserve file attributes such as timestamps and permissions.
- -b, --backup
- Create a backup of the destination file if it already exists.
- --no-dereference
- Do not follow symbolic links; copy the link itself.
- --help
- Display help information.
FAQ
What is the gvfs-copy command used for?
gvfs-copy copies files using GVFS (GNOME Virtual File System). It supports local files and remote URIs including SMB, FTP, SFTP, DAV, and other protocols supported by GVFS backends. The tool handles network protocols transparently, copying files across different backends. It integrates with GNOME's file system abstraction layer. This command is deprecated and has been replaced by gio copy, which provides the same functionality.
How do I run a basic gvfs-copy example?
Run `gvfs-copy [source] [destination]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --progress do in gvfs-copy?
Show a progress indicator during the copy operation.