diff options
author | Joel Dahl <joel@FreeBSD.org> | 2013-03-15 20:12:54 +0000 |
---|---|---|
committer | Joel Dahl <joel@FreeBSD.org> | 2013-03-15 20:12:54 +0000 |
commit | e9e3a1ab1fb5cad58704a28dc528be8c075d32d8 (patch) | |
tree | 33ce444ce5867809f8179d3cfcb13267eb94e1c0 /bin/rm | |
parent | 302868d91418dc0688773d9c7293b72c0862ed7d (diff) | |
download | src-e9e3a1ab1fb5cad58704a28dc528be8c075d32d8.tar.gz src-e9e3a1ab1fb5cad58704a28dc528be8c075d32d8.zip |
Add a few examples.
Obtained from: OpenBSD
Notes
Notes:
svn path=/head/; revision=248342
Diffstat (limited to 'bin/rm')
-rw-r--r-- | bin/rm/rm.1 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/rm/rm.1 b/bin/rm/rm.1 index ad8106617aca..3588f388da71 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 |