Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


rm command (removes files or directories)

Organization of this page

Format

rm [-d] [-f] [-i] [-R] [-r] path-name ...

Description

This command removes files or directories.

Arguments

-d

Specifies that file or directory removal is to be performed. In the case of a directory, the entire directory is removed.

-f

Specifies that file removal is to be performed without requesting confirmation. Nonexistent files are ignored. This option is ignored if it is specified before the -i option.

-i

Specifies that confirmation is to be requested before removal is performed. Removal will be performed only if the reply y or Y is read from the standard input. This option is ignored if it is specified before the -f option.

-R|-r

Specifies that a directory tree is to be removed recursively.

path-name

Specifies a path name to be removed. Multiple path names can be specified.

Return codes

Return code

Meaning

0

Normal termination

  • The specified file or directory removal was successful.

  • If the -f option was specified, the files that existed among the specified files were removed successfully.

1 or greater

Error termination

Notes

Usage examples