MTREE - Online Linux Manual PageSection : 5
Updated : September 4, 2013

NAME mtree format of mtree dir hierarchy files

DESCRIPTIONThe mtree format is a textual format that describes a collection of filesystem objects. Such files are typically used to create or verify directory hierarchies.

General FormatAn mtree file consists of a series of lines, each providing information about a single filesystem object. Leading whitespace is always ignored. When encoding file or pathnames, any backslash character or character outside of the 95 printable ASCII characters must be encoded as a backslash followed by three octal digits. When reading mtree files, any appearance of a backslash followed by three octal digits should be converted into the corresponding character. Each line is interpreted independently as one of the following types: . Bl -tag -width . It BlankBlank lines are ignored. . It CommentLines beginning with # are ignored. . It SpecialLines beginning with / are special commands that influence the interpretation of later lines. . It RelativeIf the first whitespace-delimited word has no / characters, it is the name of a file in the current directory. Any relative entry that describes a directory changes the current directory. . It dot-dotAs a special case, a relative entry with the filename .. changes the current directory to the parent directory. Options on dot-dot entries are always ignored. . It FullIf the first whitespace-delimited word has a / character after the first character, it is the pathname of a file relative to the starting directory. There can be multiple full entries describing the same file. . ElSome tools that process mtree files may require that multiple lines describing the same file occur consecutively. It is not permitted for the same file to be mentioned using both a relative and a full file specification.

Special commandsTwo special commands are currently defined: . Bl -tag -width . It /set This command defines default values for one or more keywords. It is followed on the same line by one or more whitespace-separated keyword definitions. These definitions apply to all following files that do not specify a value for that keyword. . It /unset This command removes any default value set by a previous /set command. It is followed on the same line by one or more keywords separated by whitespace. . El

KeywordsAfter the filename, a full or relative entry consists of zero or more whitespace-separated keyword definitions. Each such definition consists of a key from the following list immediately followed by an '=' sign and a value. Software programs reading mtree files should warn about unrecognized keywords. Currently supported keywords are as follows: . Bl -tag -width . It cksum The checksum of the file using the default algorithm specified by the cksum(1) utility. . It device The device number for block or char file types. The value must be one of the following forms: format,major,minorBo,subunit Bc A device with major, minor and optional subunit fields. Their meaning is specified by the operating's system format. See below for valid formats. number Opaque number (as stored on the file system). The following values for format are recognized: native, 386bsd, 4bsd, bsdos, freebsd, hpux, isc, linux, netbsd, osf1, sco, solaris, sunos, svr3, svr4, and ultrix. See mknod(8) for more details. . It contents The full pathname of a file that holds the contents of this file. . It flags The file flags as a symbolic name. See chflags 1 for information on these names. If no flags are to be set the string none may be used to override the current default. . It gid The file group as a numeric value. . It gname The file group as a symbolic name. . It ignore Ignore any file hierarchy below this file. . It inode The inode number. . It link The target of the symbolic link when type=link. . It md5 The MD5 message digest of the file. . It md5digest A synonym for md5. . It mode The current file's permissions as a numeric (octal) or symbolic value. . It nlink The number of hard links the file is expected to have. . It nochange Make sure this file or directory exists but otherwise ignore all attributes. . It optional The file is optional; do not complain about the file if it is not in the file hierarchy. . It resdevice The resident device number of the file, e.g. the ID of the device that contains the file. Its format is the same as the one for device. . It ripemd160digest The RIPEMD160 message digest of the file. . It rmd160 A synonym for ripemd160digest. . It rmd160digest A synonym for ripemd160digest. . It sha1 The FIPS 160-1 ( SHA-1 ) message digest of the file. . It sha1digest A synonym for sha1. . It sha256 The FIPS 180-2 ( SHA-256 ) message digest of the file. . It sha256digest A synonym for sha256. . It sha384 The FIPS 180-2 ( SHA-384 ) message digest of the file. . It sha384digest A synonym for sha384. . It sha512 The FIPS 180-2 ( SHA-512 ) message digest of the file. . It sha512digest A synonym for sha512. . It size The size, in bytes, of the file. . It time The last modification time of the file. . It type The type of the file; may be set to any one of the following: . Bl -tag -width -compact . It block block special device . It char character special device . It dir directory . It fifo fifo . It file regular file . It link symbolic link . It socket socket . El. It uid The file owner as a numeric value. . It uname The file owner as a symbolic name. . El

SEE ALSOcksum(1), find(1), mtree(8)

HISTORYThe mtree utility appeared in BSD 4.3 Reno. The MD5 digest capability was added in FreeBSD 2.1, in response to the widespread use of programs which can spoof cksum(1). The SHA-1 and RIPEMD160 digests were added in FreeBSD 4.0, as new attacks have demonstrated weaknesses in MD5. The SHA-256 digest was added in FreeBSD 6.0. Support for file flags was added in FreeBSD 4.0, and mostly comes from NetBSD . The full entry format was added by NetBSD .
0
Johanes Gumabo
Data Size   :   13,104 byte
man-mtree.5Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 190,968
Visitor ID   :     :  
Visitor IP   :   3.147.66.224   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_Bl|99|mtree.5|58|══─clr0F0══|.Bl -tag -width Cm )         (rof_It|4|mtree.5|59|0|.It Blank )         (rof_It|4|mtree.5|61|0|.It Comment )         (rof_It|4|mtree.5|65|0|.It Special )         (rof_It|4|mtree.5|70|0|.It Relative )         (rof_It|4|mtree.5|77|0|.It dot-dot )         (rof_It|4|mtree.5|82|0|.It Full )         (rof_El|4|mtree.5|89|0|.El )         (rof_Bl|99|mtree.5|99|══─clr0F0══|.Bl -tag -width Cm )         (rof_It|4|mtree.5|100|0|.It Cm /set )         (rof_It|4|mtree.5|106|0|.It Cm /unset )         (rof_El|4|mtree.5|112|0|.El )         (rof_Bl|99|mtree.5|123|══─clr0F0══|.Bl -tag -width Cm )         (rof_It|4|mtree.5|124|0|.It Cm cksum )         (rof_It|4|mtree.5|129|0|.It Cm device )         (mdoc_err|80|mtree.5|137|Bo|.It Ar format , Ns Ar major , Ns Ar minor Ns Bo , Ns Ar subunit Bc )         (mdoc_err|80|mtree.5|137|Bc|.It Ar format , Ns Ar major , Ns Ar minor Ns Bo , Ns Ar subunit Bc )         (rof_It|4|mtree.5|174|0|.It Cm contents )         (rof_It|4|mtree.5|176|0|.It Cm flags )         (rof_It|4|mtree.5|184|0|.It Cm gid )         (rof_It|4|mtree.5|186|0|.It Cm gname )         (rof_It|4|mtree.5|188|0|.It Cm ignore )         (rof_It|4|mtree.5|190|0|.It Cm inode )         (rof_It|4|mtree.5|192|0|.It Cm link )         (rof_It|4|mtree.5|194|0|.It Cm md5 )         (rof_It|4|mtree.5|196|0|.It Cm md5digest )         (rof_It|4|mtree.5|199|0|.It Cm mode )         (rof_It|4|mtree.5|202|0|.It Cm nlink )         (rof_It|4|mtree.5|204|0|.It Cm nochange )         (rof_It|4|mtree.5|206|0|.It Cm optional )         (rof_It|4|mtree.5|209|0|.It Cm resdevice )         (rof_It|4|mtree.5|216|0|.It Cm ripemd160digest )         (rof_It|4|mtree.5|220|0|.It Cm rmd160 )         (rof_It|4|mtree.5|223|0|.It Cm rmd160digest )         (rof_It|4|mtree.5|226|0|.It Cm sha1 )         (rof_It|4|mtree.5|232|0|.It Cm sha1digest )         (rof_It|4|mtree.5|235|0|.It Cm sha256 )         (rof_It|4|mtree.5|241|0|.It Cm sha256digest )         (rof_It|4|mtree.5|244|0|.It Cm sha384 )         (rof_It|4|mtree.5|250|0|.It Cm sha384digest )         (rof_It|4|mtree.5|253|0|.It Cm sha512 )         (rof_It|4|mtree.5|259|0|.It Cm sha512digest )         (rof_It|4|mtree.5|262|0|.It Cm size )         (rof_It|4|mtree.5|264|0|.It Cm time )         (rof_It|4|mtree.5|266|0|.It Cm type )         (rof_Bl|99|mtree.5|269|══─clr0F0══|.Bl -tag -width Cm -compact )         (rof_It|4|mtree.5|270|0|.It Cm block )         (rof_It|4|mtree.5|272|0|.It Cm char )         (rof_It|4|mtree.5|274|0|.It Cm dir )         (rof_It|4|mtree.5|276|0|.It Cm fifo )         (rof_It|4|mtree.5|278|0|.It Cm file )         (rof_It|4|mtree.5|280|0|.It Cm link )         (rof_It|4|mtree.5|282|0|.It Cm socket )         (rof_El|4|mtree.5|284|0|.El )         (rof_It|4|mtree.5|285|0|.It Cm uid )         (rof_It|4|mtree.5|287|0|.It Cm uname )         (rof_El|4|mtree.5|289|0|.El )