Remove all the file in current fold
time rm -f *
time find ./ -type f -exec rm {} \; # more flexiable
time find ./ -type f -delete # more fast than the previouse two
time perl -e 'for(<*>){((state)[9]<(unlink))}'
time rm -f *
time find ./ -type f -exec rm {} \; # more flexiable
time find ./ -type f -delete # more fast than the previouse two
time perl -e 'for(<*>){((state)[9]<(unlink))}'
本文标题:Bash 移除当前目录下的所有东西并计时
本文链接:https://www.haomeiwen.com/subject/bfxfhftx.html
网友评论