About 7,180,000 results
Open links in new tab
  1. How do you delete files older than specific date in Linux?

    Feb 9, 2025 · 96 I used the below command to delete files older than a year. find /path/* -mtime +365 -exec rm -rf {} \; But now I want to delete all files whose modified time is older than 01 …

  2. How to delete multiple files at once in Bash on Linux?

    May 9, 2012 · I'd recommend running ls abc.log.2012-03-* to list the files so that you can see what you are going to delete before running the rm command. For more details see the Bash …

  3. How to prevent rm from reporting that a file was not found?

    9 As far as rm -f doing "anything else", it does force (-f is shorthand for --force) silent removal in situations where rm would otherwise ask you for confirmation. For example, when trying to …

  4. linux - Can't remove a directory in Unix - Stack Overflow

    Dec 23, 2017 · I've got a seemingly un-deletable directory in Unix that contains some hidden files with names that start with .panfs. I'm unable to delete it using either of these commands: rm -R …

  5. unix - Command line: piping find results to rm - Stack Overflow

    Jun 25, 2012 · You are actually piping rm 's output to the input of find. What you want is to use the output of find as arguments to rm: find -type f -name '*.sql' -mtime +15 | xargs rm xargs is the …

  6. linux - How to undo rm -rf? - Stack Overflow

    Jan 23, 2014 · How we I undo the rm -rf command? For example, I have an Application folder and I removed it with: rm -rf Application But it was my mistake and want to recover that Application …

  7. Anyone ever actually tried 'rm -rf /*' in Linux? - Stack Overflow

    May 25, 2012 · Wikipedia : rm -rf (variously, rm -rf /, rm -rf *, and others) is frequently used in jokes and anecdotes about Unix disasters [2] . The rm -rf variant of the command, if run by a …

  8. linux - Removing files with rm using find and xargs - Stack Overflow

    Mar 16, 2017 · You have an alias set for the rm command to 'rm -i'. Therefore if you invoke the command directly as in rm file.txt or rm *.txt the alias will be expanded. If you will call it with …

  9. linux - How does rm work? What does rm do? - Stack Overflow

    How does rm work? What does rm do? [closed] Asked 11 years, 11 months ago Modified 6 years, 9 months ago Viewed 18k times

  10. What does rm ** does in LINUX - Stack Overflow

    Mar 1, 2022 · what does rm ** do in linux. started learning linux and stuck here. I tried reading but couldnt understand or didn get the answer