[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 2

dfshares Command

Purpose

Lists available resources from remote systems.

Syntax

dfshares [ -F FileSystemType ] [ -h ] [ Server ... ]

Description

The dfshares command provides information about resources that are available to the host through the Network File System. The dfshares command prints a header line, followed by a list of lines that contain white spaces as field separators.

For each resource, the following fields are displayed:

RESOURCE
Displays the resource name that is exported in the form of server:path.
SERVER
Displays the machine that is providing the resource.
ACCESS
Displays the access permissions granted to the client systems. However, dfshares cannot determine this information for a NFS resource and therefore populates the field with a hyphen ("-").
TRANSPORT
Displays the transport provider over which the resource is shared. However, dfshares cannot determine this information for a NFS resource and therefore populates the field with a hyphen ("-").

Flags

-F FileSystemType Specifies the filesystem type. Only nfs type of filesystem is supported.
-h Suppress the header line in the output of dfshares.

Parameters

Server Represents a system on the network that has provided resources to the local machine. If this parameter is not specified, then the dfshares command prints the information for the local system, itself. More than one server name can be specified with dfshares.

Exit Status

0
The command completed successfully.
>0
An error occurred.

Examples

  1. To print the resource information on the system "mercury" for an nfs type filesystem, enter:
    dfshares -F nfs mercury
  2. To print resource information without header on the system, enter:
    dfshares -hF nfs

Files

/usr/bin/dfshares Contains the generic System V dfshares command.
/usr/lib/fs/nfs/dfshares Contains the System V dfshares command for filesystems of type nfs.
/etc/vfs Contains the descriptions for known virtual filesystem implementations.

Related Information

The dfmounts command.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]