just like it says,
[code]
rm -r root\*
[\code]
is escaping \ the * so it sees it as a * and not a wildcard.
just be leery when using -r with rm
if you want to keep the directory and just rename it replace rm with mv
example
Code:
┌─[userx@parrot]─[~]
└──╼ $mkdir oops*
┌─[userx@parrot]─[~]
└──╼ $ls
Desktop Downloads Music Pictures Templates
Documents Dropbox 'oops*' Public Videos
┌─[userx@parrot]─[~]
└──╼ $mv oops\* oops
┌─[userx@parrot]─[~]
└──╼ $ls
Desktop Downloads Music Pictures Templates
Documents Dropbox oops Public Videos
rmdir oops
yours explained
Code:
root@pi:~# cd ..
root@pi:/# ls
bin boot.bak etc home* lost+found mnt proc root* sbin sys usr
boot dev home lib media opt root run srv tmp var
root@pi:/# rm home*
rm: cannot remove 'home': Is a directory
root@pi:/# rm root*
rm: cannot remove 'root': Is a directory
root@pi:/# cd root*
root@pi:~# ls
root@pi:~# ls
root@pi:~# cd ..
root@pi:/# ls
bin boot.bak etc lib media opt root sbin sys usr
boot dev home lost+found mnt proc run srv tmp var
root@pi:/# cd ..
root@pi:/# ls
bin boot.bak etc lib media opt root sbin sys usr
boot dev home lost+found mnt proc run srv tmp var
root@pi:/# ls
bin boot.bak etc lib media opt root sbin sys usr
boot dev home lost+found mnt proc run srv tmp var
root@pi:/#
rm will only remove dir if it is empty, else it fails, this is why rm -r is used to remove contents within dir first then the directory because everything is seen as a file, even directories.
why home and root no got the * asterisk anymore, don't know, what did you do?