Constructs a prototype file for a file system.
proto Directory [ Prefix ]
The proto command creates a prototype file for a file system or part of a file system. The mkfs command uses the prototype file as input to construct a file system according to a predefined template. The prototype file consists of a recursive directory listing of every file on the file system, with its owner, group, and protection. It also contains the file from which the prototype file is to be initialized, formatted as described in 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 mkfs command, the mkfs command needs a startup program, a file system size, and an i-node list size. Hard link information is not preserved with the proto command.
The collating sequence is determined by the LANG or LC_COLLATE environment variables.
To make a prototype file for an existing file system /works , enter:
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 $ $ $
|/usr/sbin/proto||Contains the proto command.|
The mkfs command, mkproto command.
The File Systems Overview for System Management in AIX Version 4.3 System Management Guide: Operating System and Devices explains file system types, management, structure, and maintenance.
The Files Overview in AIX Version 4.3 System User's Guide: Operating System and Devices provides information on working with files.
The National Language Support Overview for System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
Locale Overview for System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.