Section: User Commands (1)
Return to Main Contents
rm - remove files
deletes each file argument from the system.
There are a large number of options:
Unwritable files are removed without
will ask permission before removing unwritable files.
For each argument which is a directory,
will recursively remove the entire hierarchy below it.
If this was successful,
the directory itself is removed.
will ask permission before removing anything.
files are those files that have an extension of .csh.
is used, the
flags are turned on, and ``/'' is used for the
There are a host of modifiers:
source files to Modula 2.
The extension is changed to .m2.
Purge accounts of all users who had
source files in
their account, or had used the
Replace removed files with copies of the current bug
list for the
that can execute that particular file.
In the unlikely event that more than one
can execute the file,
buglists are catenated together.
WARNING: This can consume an inordinate amount of disk
shells from the system.
After removing files, make a posting to
comp.unix.shell describing exactly how well
Replace removed files with copies of the GNU manifesto.
Mail source files to firstname.lastname@example.org before removing.
Raw eggs option.
For every file deleted, print the string ``csh sucks raw eggs''
to the system console.
Delete shell scripts that call the
Don't simply delete
beat them to death with a stick first.
instead convert them to C++.
The extension is changed .c++.
If this option is used in conjunction with the
the Gnu copyright is prepended to the file when translated.
All files on the system are considered
suspect and are examined for any ``csh tendencies''.
Files containing any ``csh tendencies'' will be deleted.
This is the only way to delete makefiles for
In addition to deleting files,
burn all copies of the Csh Reference Manual.
This can only be used in conjunction with
Instead of deleting
replace them with a shell script that prints ``You Lose!''
After removing files,
send mail to the project manager
describing exactly how well
If this option is used,
a resume is also posted to misc.jobs.resumes.
Don't limit deletion to the machine
was invoked from,
files from the entire network.
source files to Pascal.
The extension is changed to .p.
Run /usr/games/rogue while deleting
Similar to the
Don't restrict deletion to the machine
was invoked from,
delete files from all machines connected via UUCP.
There is no way to delete
files on machines that you are
not connected to.
option was written in
so of course it is ugly and non-portable.
This document was created by
using the manual pages.
Time: 07:22:14 GMT, April 13, 2018