diff options
Diffstat (limited to 'usr/src/man/man1/rm.1')
-rw-r--r-- | usr/src/man/man1/rm.1 | 75 |
1 files changed, 19 insertions, 56 deletions
diff --git a/usr/src/man/man1/rm.1 b/usr/src/man/man1/rm.1 index 97261f57a6..2759a344d9 100644 --- a/usr/src/man/man1/rm.1 +++ b/usr/src/man/man1/rm.1 @@ -3,14 +3,14 @@ .\" Copyright 1989 AT&T .\" Portions Copyright (c) 1982-2007 AT&T Knowledge Ventures .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH rm 1 "20 Nov 2007" "SunOS 5.11" "User Commands" +.TH RM 1 "Nov 20, 2007" .SH NAME rm, rmdir \- remove directory entries .SH SYNOPSIS @@ -96,12 +96,10 @@ The following options are supported for \fB/usr/bin/rm\fR and \fB/usr/xpg4/bin/rm\fR: .sp .ne 2 -.mk .na \fB\fB-r\fR\fR .ad .RS 6n -.rt Recursively removes directories and subdirectories in the argument list. The directory is emptied of files and removed. The user is normally prompted for removal of any write-protected files which the directory contains. The @@ -118,12 +116,10 @@ error message. .sp .ne 2 -.mk .na \fB\fB-R\fR\fR .ad .RS 6n -.rt Same as \fB-r\fR option. .RE @@ -133,12 +129,10 @@ Same as \fB-r\fR option. The following options are supported for \fB/usr/bin/rm\fR only: .sp .ne 2 -.mk .na \fB\fB-f\fR\fR .ad .RS 6n -.rt Removes all files (whether write-protected or not) in a directory without prompting the user. In a write-protected directory, however, files are never removed (whatever their permissions are), but no messages are displayed. If the @@ -148,12 +142,10 @@ suppress an error message. .sp .ne 2 -.mk .na \fB\fB-i\fR\fR .ad .RS 6n -.rt Interactive. With this option, \fBrm\fR prompts for confirmation before removing any files. It overrides the \fB-f\fR option and remains in effect even if the standard input is not a terminal. @@ -165,12 +157,10 @@ if the standard input is not a terminal. The following options are supported for \fB/usr/xpg4/bin/rm\fR only: .sp .ne 2 -.mk .na \fB\fB-f\fR\fR .ad .RS 6n -.rt Does not prompt for confirmation. Does not write diagnostic messages or modify the exit status in the case of non-existent operands. Any previous occurrences of the \fB-i\fR option is ignored. @@ -178,12 +168,10 @@ of the \fB-i\fR option is ignored. .sp .ne 2 -.mk .na \fB\fB-i\fR\fR .ad .RS 6n -.rt Prompts for confirmation. Any occurrences of the \fB-f\fR option is ignored. .RE @@ -193,12 +181,10 @@ Prompts for confirmation. Any occurrences of the \fB-f\fR option is ignored. The following options are supported for \fB/usr/bin/rmdir\fR only: .sp .ne 2 -.mk .na \fB\fB-p\fR\fR .ad .RS 6n -.rt Allows users to remove the directory \fIdirname\fR and its parent directories which become empty. A message is printed to standard error if all or part of the path could not be removed. @@ -206,12 +192,10 @@ the path could not be removed. .sp .ne 2 -.mk .na \fB\fB-s\fR\fR .ad .RS 6n -.rt Suppresses the message printed on the standard error when \fB-p\fR is in effect. .RE @@ -223,7 +207,6 @@ The following options are supported for the \fBrmdir\fR built-in for \fBksh93\fR: .sp .ne 2 -.mk .na \fB\fB-e\fR\fR .ad @@ -232,13 +215,11 @@ The following options are supported for the \fBrmdir\fR built-in for \fB\fB--ignore-fail-on-non-empty\fR\fR .ad .RS 30n -.rt Ignore each non-empty directory failure. .RE .sp .ne 2 -.mk .na \fB\fB-p\fR\fR .ad @@ -247,14 +228,12 @@ Ignore each non-empty directory failure. \fB\fB--parents\fR\fR .ad .RS 30n -.rt Remove each explicit directory argument directory that becomes empty after its child directories are removed. .RE .sp .ne 2 -.mk .na \fB\fB-s\fR\fR .ad @@ -263,7 +242,6 @@ child directories are removed. \fB\fB--suppress\fR\fR .ad .RS 30n -.rt Suppress the message printed on the standard error when \fB-p\fR is in effect. .RE @@ -273,23 +251,19 @@ Suppress the message printed on the standard error when \fB-p\fR is in effect. The following operands are supported: .sp .ne 2 -.mk .na \fB\fIfile\fR\fR .ad .RS 11n -.rt Specifies the pathname of a directory entry to be removed. .RE .sp .ne 2 -.mk .na \fB\fIdirname\fR\fR .ad .RS 11n -.rt Specifies the pathname of an empty directory to be removed. .RE @@ -373,24 +347,20 @@ expression defined for the \fByesexpr\fR. See \fBlocale\fR(5). The following exit values are returned: .sp .ne 2 -.mk .na \fB\fB0\fR\fR .ad .RS 6n -.rt If the \fB-f\fR option was not specified, all the named directory entries were removed; otherwise, all the existing named directory entries were removed. .RE .sp .ne 2 -.mk .na \fB\fB>0\fR\fR .ad .RS 6n -.rt An error occurred. .RE @@ -400,23 +370,19 @@ An error occurred. The following exit values are returned: .sp .ne 2 -.mk .na \fB\fB0\fR\fR .ad .RS 6n -.rt Successful completion. All directories deleted successfully. .RE .sp .ne 2 -.mk .na \fB\fB>0\fR\fR .ad .RS 6n -.rt An error occurred. One or more directories could not be deleted. .RE @@ -429,13 +395,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -CSIEnabled +CSI Enabled .TE .SS "/usr/xpg4/bin/rm" @@ -443,17 +408,16 @@ CSIEnabled .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -CSIEnabled +CSI Enabled _ -Interface StabilityCommitted +Interface Stability Committed _ -StandardSee \fBstandards\fR(5). +Standard See \fBstandards\fR(5). .TE .SS "ksh93" @@ -461,13 +425,12 @@ StandardSee \fBstandards\fR(5). .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilitySee below. +Interface Stability See below. .TE .sp |