Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dos(4)

rm(1)

rmdir(1)

DOSRM(1)

Series 300 Only

NAME

dosrm, dosrmdir − remove DOS files or directories

SYNOPSIS

dosrm [ −fri ] device:file ... 

dosrmdir device:dir ... 

DESCRIPTION

Dosrm and dosrmdir are DOS counterparts of rm(1) and rmdir(1), respectively.

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

Dosrm removes the entries for one or more files from a directory. 

If a designated file is a directory, an error comment is printed (unless the optional argument −r has been used as described below). 

The options are:

−f Unconditionally removes the specified file, even if the file is marked read-only. 

−r Causes dosrm to recursively delete the entire contents of a directory, followed by the directory itself.  Dosrm can recursively delete up to 17 levels of directories. 

−i Causes dosrm to ask whether or not to delete each file.  If −r is also specified, dosrm asks whether to examine each directory encountered. 

Dosrmdir Removes entries for the named directories, provided they are empty. 

EXAMPLES

The following examples assume that an DOS directory structure exists on the HP-UX device file /dev/dosdisc.

This example recursively combs through the DOS directory /tmp and asks if each DOS file should be removed (forced, with no file mode checks):

dosrm −irf /dev/dosdisc:/tmp

This example removes the DOS directory /users/doug:

dosrmdir sc:/users/doug

SEE ALSO

dos(4), rm(1), rmdir(1). 

Hewlett-Packard Company  —  May 11, 2021

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