DBA blog
and not only about it.
Search This Blog
Tuesday 16 October 2012
Delete big amount of files in Linux
When we need delete big amount of files in
Linux
we can get the following error:
bash: /bin/rm: Argument list too long
Use any of the following commands to delete the files from your folder:
ls | xargs rm
for i in $(echo *); do rm -f $i; done
ls | grep .| xargs rm
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment