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)  —  HP-UX

Series 300, 800 Only

NAME

sdfrm, sdfrmdir − remove SDF files or directories

SYNOPSIS

sdfrm [ −fri ] device:file ... 

sdfrmdir device:dir ... 

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). 

The 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, and then 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. 

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

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

The second example removes the SDF directory /users/doug:

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

AUTHOR

Sdfrm was developed by the Hewlett-Packard Company. 

SEE ALSO

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

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

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