Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sdf(4)

rm(1)

rmdir(1)

sdfrm(1)

NAME

sdfrm, sdfrmdir − remove SDF files or directories

SYNOPSIS

sdfrm [−fri] device:file... 

sdfrmdir device:file... 

DESCRIPTION

sdfrm and sdfrmdir are intended to mimic rm(1) and rmdir(1).

An SDF file name is recognized by the embedded colon (:) delimiter (see sdf(4) for SDF file naming conventions). 

sdfrm removes the entries for one or more files from a directory.  If an entry was the last link to the file, the file is destroyed. 

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

Recognized options are:

−f Remove a file with no questions asked, even if the file has no write permission. 

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

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

sdfrmdir removes entries for the named directories, which must be empty. 

EXAMPLES

The following examples assume that an SDF directory structure exists on the HP-UX device file /dev/rdsk/c6d0s1. 

Recursively comb through SDF directory /tmp and ask if each SDF file should be removed (forced, with no file mode checks):

sdfrm −irf /dev/rdsk/c6d0s1:/tmp

Remove SDF directory /users/doug:

sdfrmdir /dev/rdsk/c6d0s1:/users/doug

AUTHOR

sdfrm was developed by HP. 

SEE ALSO

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

Hewlett-Packard Company  —  HP-UX Release 9.03: April 1994

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