From 2ba67e203aad1ffa4650449d05e44a2b61e99ad6 Mon Sep 17 00:00:00 2001 From: joel Date: Fri, 15 Mar 2013 20:12:54 +0000 Subject: Add a few examples. Obtained from: OpenBSD --- bin/rm/rm.1 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'bin/rm') diff --git a/bin/rm/rm.1 b/bin/rm/rm.1 index ad81066..3588f38 100644 --- a/bin/rm/rm.1 +++ b/bin/rm/rm.1 @@ -32,7 +32,7 @@ .\" @(#)rm.1 8.5 (Berkeley) 12/5/94 .\" $FreeBSD$ .\" -.Dd October 31, 2010 +.Dd March 15, 2013 .Dt RM 1 .Os .Sh NAME @@ -193,6 +193,19 @@ When is specified with .Fl f the file will be overwritten and removed even if it has hard links. +.Sh EXAMPLES +Recursively remove all files contained within the +.Pa foobar +directory hierarchy: +.Pp +.Dl $ rm -rf foobar +.Pp +Either of these commands will remove the file +.Pa -f : +.Bd -literal -offset indent +$ rm -- -f +$ rm ./-f +.Ed .Sh COMPATIBILITY The .Nm -- cgit v1.1