rm -rf /usr /lib/nvidia-current/xorg/xorgrm -rf /usr /lib/nvidia-current/xorg/xorgThere is a space after "usr", which means the remainder of the command is detached from the actual command. "rm" is "remove," and the "f" in "-rf" means "force."
/usr is the second major section of the filesystem. /usr is shareable, read-only data. That means that /usr should be shareable between various FHS-compliant hosts and must not be written to. Any information that is host-specific or varies with time is stored elsewhere.
Large software packages must not use a direct subdirectory under the /usr hierarchy.
rm -rf .* is not how you want to clear out dotfiles in a directory.In particular, in our own version of the system, there is a directory "/usr" which contains all user's directories, and which is stored on a relatively large, but slow moving head disk, while the othe files are on the fast but small fixed-head disk.but at some point /usr became used for system files that end-users would run themselves, whilst user directories were stored elsewhere. So the origins of the name do indeed lie in a contraction of "user" but all that remains of that usage is the name itself.
ls -R .*'. I'm pretty sure those listed files are the same as the files that would be deleted by an rm -rf.$ rm -rf .will delete everything returned by
$ find .
If either of the files dot or dot-dot are specified as the basename portion of an operand (that is, the final pathname component), rm will write a diagnostic message to standard error and do nothing more with such operands.Not that broken UNIXes don't exist, of course. But I am technically correct, the best kind of correct.
- Single UNIX Specification, Version 2: rm command
« Older The three-year run of FreakAngels, Warren Ellis an... | "In this piece I didn't b... Newer »
This thread has been archived and is closed to new comments
posted by kbanas at 8:09 AM on June 17, 2011