proto Command

Purpose

Constructs a prototype file for a file system.

Syntax

proto DirectoryPrefix ]

Description

The proto command creates a prototype file for a file system or part of a file system. The mkfs command.

Specify the root directory from which the prototype file is made with the Directory parameter. The prototype file includes the complete subtree below the Directory parameter, and is contained on the same file system as the base directory specified by the Directory parameter.

The Prefix parameter is added to the names of all the initialization files, forcing the initialization files to be taken from a place other than the prototype. Before the output from the proto command can be used with the LC_COLLATE environment variables.

Example

To make a prototype file for an existing file system /works, enter:

proto /works

If the /works file system contains two directories called dir1 and dir2, and the dir1 directory contains the file1 file, then the proto command displays:

#Prototype file for /works
d---  755  0 0
  dir1  d---  755  0 0
    file1         ----   644  0 0   /works/dir1/file1
        $
  dir2  d---  755  0 0
        $
   $
$

Files

Item Description
/usr/sbin/proto Contains the proto command.