About 1,350,000 results
Open links in new tab
  1. What is the difference between rm -r and rm -f? - Super User

    Sep 20, 2016 · What do you mean they give the same result? rm -r emptydir removes that directory, rm -f emptydir does not. These are two completely different command line options, …

  2. linux - Remove file without asking - Super User

    Jun 18, 2021 · How can I remove a file without asking the user if he agrees to delete the file? I am writing shell script and use rm function, but it asks "remove regular file?" and I …

  3. Is it possible to remove the root directory? - Super User

    The --preserve-root option was added to GNU rm in 2003 (commit 9be74f6f125b2be), and was made the default behavior in 2006 (commit aff5a4f2ab86f). Some say it is because pranksters …

  4. What is the equivalent of rm -rf in Powershell? - Super User

    As we all know, on a *nix system, rm -rf some_directory removes some_directory and all files beneath it recursively, without asking for confirmation. What is the equivalent of this command in

  5. linux - Why does it take a long time to delete big files if `rm` can …

    Nov 7, 2025 · I know that that it takes a long time to remove a big file because big files have larger number of blocks to be unlinked. But when I interrupt an ongoing rm of a large file, the file is …

  6. rm: cannot remove `dir-name': Directory not empty - Super User

    Dec 20, 2023 · rm: cannot remove `dir-name': Directory not empty Ask Question Asked 1 year, 11 months ago Modified 1 year, 11 months ago

  7. bash - Delete files with regular expression - Super User

    Mar 15, 2017 · I Tried to delete files that starts with A and ends with 2 numbers but It doesn't do a thing. What I tried: rm ^A*[0..9]2$ Where am I wrong?

  8. How do I make rm not give an error if a file doesn't exist?

    Jun 12, 2015 · So rm will warn you if you try to delete a file you don't have write permissions on. This is allowed if you have write permissions on the directory but is a little weird, which is why …

  9. "rm: descend into directory" - what does it mean? - Super User

    What do I do when the command line asks: rm: descend into directory '.emacs.d'? a@b:~$ sudo rm -r -i .emacs.d [sudo] password for a: rm: descend into directory `.emacs.d'? Is there a …

  10. What does "rm -rf" do? - Super User

    Sep 5, 2017 · The rm command removes files. The -r option will perform a recursive removal and the -f option will remove files without prompting you to confirm that you wish to have them …