删除confdir-14B---

前段时间为了配置iterm的字体颜色用brew安装coreutils来着。结果在temp目录下出现了一个confdir-14B---的目录,超级深,一共337个confdir-14B---,用rm更本删不掉……
于是上谷歌搜到这个

while [ true ]; do mv confdir-14B---/confdir-14B--- b; rm -r confdir-14B---; mv b/confdir-14B--- confdir-14B---; rm -r b; done

循环着将这个目录下的子目录拉出来并重命名,完了把这个目录删掉,接着把刚重名的子目录的子目录拉出来……
试了下果然有效,不过要手动ctrl+c来终止……

你可能感兴趣的:(删除confdir-14B---)