[bash][root@localhost data]# rm -rf tmp/
Display all 72020 possibilities? (y or n)
[root@localhost data]# rm -rf tmp/*
-bash: /bin/rm: Argument list too long
参数太长,rm 干不了。
可以用ls | xargs rm -f这个命令将目录下所有文件删除。
[root@localhost data]# cd tmp/
[root@localhost tmp]# ls |xargs rm -f
[root@localhost tmp]# [/bash]
您可以选择一种方式赞助本站
支付宝转账赞助
