Tuesday 20 April 2021

How to remove the files if list is too long in ubuntu?

(base) temp@temp:~/temp$ rm -r ./*
bash: /bin/rm: Argument list too long
(base) temp@temp:~/temp$ find . -type f -name '*.*' | xargs rm
(base) temp@temp:~/temp$ ls

No comments:

Post a Comment