RM(1fun)
๐ RM(1fun) ๐
okay bestie, sit down, hydrate, and let me tell you about rm โ the fun version, from section 1fun of the manual. yes there's a whole separate manual section for this and honestly? iconic. this is the page for deleting files, except it has opinions, and the opinion is about csh. ๐๐
โจ NAME โจ
rm โ remove files ๐๏ธโจ (and, uh, so much more, we'll get there)
๐ธ SYNOPSIS ๐ธ
rm [-fri] [-C[2ABCFGMRSbcfjlmnpru]] file...
okay so like, file... is one or more files, and there are a LOT of options. like, a suspicious amount. buckle up. ๐
๐ DESCRIPTION ๐
the command rm deletes each file argument from the system. and then there's justโฆ a large number of options. an unhinged number. here we go.
-fโ Forced remove. files that are unwritable get removed withoutrmasking permission first. by defaultrmwill ask permission before removing unwritable files, so this is the "don't ask, just do it" flag. ๐-rโ Recursive remove. for each argument that's a directory,rmrecursively removes the entire hierarchy underneath it. and if all that worked out? the directory itself gets removed too. ๐-iโ Interactive remove.rmasks permission before removing anything. every single thing. yes it's a lot. yes it's polite. ๐ฅบ-Cโ Remove csh files. "csh files" means files with an extension of.csh. when you use-C, the-fand-rflags get turned on, and/is used for the file argument. ๐ณ (yes. that/. we're doing this.)
and then โ because that wasn't enough โ there's a host of modifiers:
-2โ Translate csh source files to Modula 2. the extension gets changed to.m2.-Aโ Purge accounts of all users who had csh source files in their account, or who had used the csh this week. yeah. their account. ๐-Bโ Replace removed files with copies of the current bug list for the csh that can execute that particular file. in the unlikely event that more than one csh can execute the file, the buglists get catenated together. WARNING: this can consume an inordinate amount of disk space. like, your disk is GONE, bestie. ๐-Cโ Remove all csh shells from the system. (same letter, different modifier energy, keep up ๐ซถ)-Fโ Flame option. after removing files, make a posting tocomp.unix.shelldescribing exactly how well csh works. ๐ฅ-Gโ Replace removed files with copies of the GNU manifesto. ๐-Mโ Mail source files torms@mit-prep.mit.edubefore removing. ๐ง-Rโ Raw eggs option. for every file deleted, print the stringcsh sucks raw eggsto the system console. ๐ฅ๐ฅ-Sโ Script option. delete shell scripts that call the csh shell too. ๐๐ฅ-bโ Beat option. don't simply delete csh shells โ beat them to death with a stick first. ๐-cโ Don't remove csh source files, instead convert them to C++. the extension is changed to.c++. if this option is used together with the-Goption, the Gnu copyright is prepended to the file when it's translated. โจ-fโ Force option. all files on the system are considered suspect and get examined for anycsh tendencies. files containing anycsh tendencieswill be deleted. this is the only way to delete makefiles for csh programs. ๐ต๏ธโ๏ธ-jโ In addition to deleting files, burn all copies of the Csh Reference Manual. ๐ฅ๐-lโ Lose option. this can only be used in conjunction with the-Coption. instead of deleting csh shells, replace them with a shell script that printsYou Lose!when invoked. ๐ญ-mโ After removing files, send mail to the project manager describing exactly how well csh shells work. if this option is used, a resume is also posted tomisc.jobs.resumes. ๐-nโ Network option. don't limit deletion to the machinermwas invoked from โ delete all csh files from the entire network. ๐-pโ Pascal option. translate csh source files to Pascal. the extension is changed to.p.-rโ Run/usr/games/roguewhile deleting csh files. ๐ฎ (yes, another-r. it contains multitudes.)-uโ UUCP option. similar to the-noption. don't restrict deletion to the machinermwas invoked from โ delete files from all machines connected via UUCP. ๐ก
๐ FILES ๐
$HOME/resumeโ for the-moption. ๐/usr/csh/bugreports/*โ for the-Boption. ๐
๐ญ BUGS ๐ญ
- there is no way to delete csh files on machines that you are not connected to. devastating. truly. ๐
- the
-Coption was written in csh, so of course it is ugly and non-portable. it's giving self-own. ๐
okay that's the whole page bestie, you're officially certified in rm (fun edition). go forth, be careful with that / argument, and remember: this is the fun manual page โ the real one is way less entertaining. ๐ฆ
signing off from the RM(1fun) page โ that's section 1fun, dated and versioned as the manual footer says โ mwah, stay hydrated, don't recursively delete your home directory ๐โจ๐
๐ฆ where this page comes from
- ubuntu jammy: funny-manpages 2.3-1 ยท Custom
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms