← 返回命令列表

Linux command

gvfs-ls 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

List directory

gvfs-ls [directory]

List remote directory

gvfs-ls smb://server/share/

Show hidden files

gvfs-ls -h [directory]

Long listing format

gvfs-ls -l [directory]

Show specific attributes

gvfs-ls -a [standard::name,standard::size] [directory]

说明

gvfs-ls lists directory contents using GVFS. It works with local directories and remote URIs, providing consistent listing across backends. The tool shows file names and optionally detailed attributes. It supports network protocols like SMB, FTP, SSH, and WebDAV.

参数

-h, --hidden
Show hidden files.
-l, --long
Long listing format.
-a, --attributes _ATTR_
Show specific attributes.
-n, --nofollow-symlinks
Don't follow symlinks.
--help
Display help information.

FAQ

What is the gvfs-ls command used for?

gvfs-ls lists directory contents using GVFS. It works with local directories and remote URIs, providing consistent listing across backends. The tool shows file names and optionally detailed attributes. It supports network protocols like SMB, FTP, SSH, and WebDAV.

How do I run a basic gvfs-ls example?

Run `gvfs-ls [directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --hidden do in gvfs-ls?

Show hidden files.