Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

23
  • 35
    rsync can be faster than plain rm, because it guarantees the deletes in correct order, so less btress recomputation is needed. See this answer serverfault.com/a/328305/105902 Commented Jun 29, 2015 at 12:45
  • 21
    Can anyone modify the perl expression to recursively delete all directories and files inside a directory_to_be_deleted ? Commented Oct 6, 2015 at 15:43
  • 17
    Notes : add -P option to rsync for some more display, also, be careful about the syntax, the trailing slashes are mandatory. Finally, you can start the rsync command a first time with the -n option first to launch a dry run. Commented Oct 23, 2015 at 15:39
  • 9
    That perl command don't work Commented Nov 27, 2019 at 17:40
  • 9
    Ubuntu 20.04 that perl command does nothing. Does anybody have a recursive perl variant? And is there any way to get a progress bar for rsync? I tried -P and --info=progress2 but no progress bar. Commented Feb 21, 2022 at 16:31