Search code examples
shellunixsshdirectoryrm

Unix shell / ssh - How to remove folder "backups\r\r"


I accidentally created a directory named: backups\r\r. Any attempt at deleting it failed!

How can this directory be deleted?


Solution

  • use ANSI-C quoting: rmdir $'backups\r\r'

    or delete interactively with pattern matching: rmdir -i backups??