Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ doschmod(1) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dosif(4)

chmod(1)

chmod(2)

DOSCHMOD(1)

NAME

doschmod − change attributes of a DOS file

SYNOPSIS

doschmod mode device:file ... 

DESCRIPTION

Doschmod is the DOS counterpart of chmod(1).

A DOS file name is recognized by the presence of an embedded colon (:) delimiter (see dosif(4) for DOS file naming conventions). 

The attributes of each named file are changed according to mode, which is an octal number in the range 00 to 0377. mode is constructed from the logical OR of the following modes:

040 Archive bit.  This bit is set whenever the file has been written to and closed. 

020 This bit defines a sub-directory. 

010 This bit signifies that the volume label is contained in the first 11 bytes. 

004 System file

002 Hidden file

001 File is marked read only

Doschmod does not restrict the value of mode; however, some values will render the file inaccessible to other utilities and operating systems, so special care should be taken in selecting values for mode. 

EXAMPLES

The first of the following examples marks file as a directory.  The second makes file read-only:

doschmod 020 file

doschmod 041 file

SEE ALSO

dosif(4), chmod(1), chmod(2). 
 

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026