About 1,700,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. 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?

  4. 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 …

  5. 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 …

  6. rm - Can't delete, chown or chmod file even as root - Super User

    May 12, 2020 · I want to delete a backup of a website (FTP-mirrored with wget), but a single file, named js_composer.less resists. I can create new files and delete them in the same directory, …

  7. rm - Need to delete a file I accidentally labeled in quotes in Linux ...

    I have a file which I wrote and not thinking put the actual filename in single quotes like this: 'filename' When I try to remove it using rm -f 'filename' it does not recognize that it is there I ...

  8. rm - Ubuntu, delete all files that start with '._' - Super User

    Hmm, I cannot seem to be able to reproduce your problem. (touch ._test, rm ._* works fine.) Maybe there's some other attributes that make the difference? Files beginning with a period …

  9. rm - Removing "rw-r--r-- root/wheel restricted" files in macOS …

    Here's the output of a sudo rm -Rf /Previous\ System : rm: datadetectors: Permission denied override rw-r--r-- root/wheel restricted for dyld/dyld_shared_cache_x86_64.map? I'm under the …

  10. Completely delete a folder in Windows using command line

    Folder older versions of Windows (DOS, Windows 95/98/ME), DELTREE is the equivalent to RM or RMDIR. I use DELTREE on my Windows 7 workstation in batch files just fine though.