rm Flashcards
-d or –dir
Can be used to be remove directories if they are empty
-f or –force
Removes the warning for no such file or directory and ignores -i
-i
Asks if you want to remove the file or directory, if no then it just skips over that file/directory. Equivalent to –interactive=always
-I
If there is more than 3 files/directories to be deleted then it will ask you if you want them deleted. Ignores any previous -f option. Equivalent to –interactive=once
–interactive=never
Don’t ever ask me if I want permission to delete file/directory
–interactive=once
Asks me for permission once to delete if there are more than 3 files/directory to be deleted. Equivalent to -I
–interactive=always
Ask me for permission to delete each file/directory
–interactive
With no when is equivalent to –interactive=always
–one-file-system
Only delete files from the same file system or hard drives
–preserve-root[=all]
Do not delete the root directory of the whole computer. This is one by default at all times
–no-preserve-root
How to fuck up your life. Will allow you to delete everything on computer. DO NOT USE.
-r, –R or –recursive
Will keep deleting directories and files until all are deleted
-v, –verbose
- Tells you the files/directories it will be removing