Quantcast
Viewing latest article 3
Browse Latest Browse All 7

Comment by David Winiecki on How to remove all files from a directory?

I don't have enough reputation to add a real answer, but when using the shopt -s dotglob && rm /path/to/directory/* solution in bash, (shopt -s dotglob && rm /path/to/directory/*) (with parentheses) will prevent shopt -s dotglob from leaking beyond this one command. (Parentheses run the contained commands in a subshell.)

Viewing latest article 3
Browse Latest Browse All 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>