← 返回命令列表

Linux command

gvfs-mount 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Mount remote location

gvfs-mount [smb://server/share]

Mount SSH location

gvfs-mount [sftp://user@host]

List mounted locations

gvfs-mount -l

Unmount location

gvfs-mount -u [smb://server/share]

Eject media

gvfs-mount -e [/dev/sr0]

说明

gvfs-mount mounts virtual filesystems through GVFS (GNOME Virtual File System). It supports various protocols including SMB/CIFS, SFTP, FTP, WebDAV, and MTP. GVFS provides a userspace filesystem layer, allowing file managers and applications to access remote resources transparently.

参数

-l, --list
List mounted locations.
-u, --unmount _location_
Unmount location.
-e, --eject _location_
Eject media.
-d, --device _device_
Mount device by path.
-s, --unmount-scheme _scheme_
Unmount all of scheme type.
-a, --anonymous
Use anonymous authentication.

FAQ

What is the gvfs-mount command used for?

gvfs-mount mounts virtual filesystems through GVFS (GNOME Virtual File System). It supports various protocols including SMB/CIFS, SFTP, FTP, WebDAV, and MTP. GVFS provides a userspace filesystem layer, allowing file managers and applications to access remote resources transparently.

How do I run a basic gvfs-mount example?

Run `gvfs-mount [smb://server/share]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --list do in gvfs-mount?

List mounted locations.