shel options

 Why does rm -rf /tmp/myfiles/* not result in an empty directory? Because of /tmp/myfiles/.config. You can’t use rm -rf /tmp/ myfiles/.* because that would match /tmp/myfiles/.., which is /tmp itself. You could always use rm -rf /tmp/myfiles, which will remove /tmp/myfiles and everything in it, but if you want the directory to remain, you can use the dotglob shell option.

Comments

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all