you wanted to delete all the files in a directory that begins with the word 'temp' bala bala
[prabhat@my-site]# rm temp*
bash: /bin/rm: Argument list too long
ERROR!
This happens when you are trying to delete too many files in a directory at the same time - it seems rm has limits ....
To solve the problem:
Use 'find' to pipe all the matching files to 'rm', one at a time.
[prabhat@my-site]# find . -name 'temp*' | xargs rm
or
[prabhat@my-site]# find . -name 'temp*' - print0 | xargs -0 rm -f
Subscribe to:
Post Comments (Atom)
Basics of Kubernetes
Kubernetes, often abbreviated as K8s , is an open-source platform designed to automate the deployment, scaling, and management of container...

-
Change Views DEFINER without ALTER VIEW: UPDATE `mysql`.`proc` p SET definer = ‘root@localhost’ WHERE definer=’root@foobar’ AND db=’w...
-
The Unix top command is designed to help users determine which processes are running and which applications are using more memory or process...
-
IOPS (input/output operations per second) is the standard unit of measurement for the maximum number of reads and writes to non-contiguous ...
1 comment:
kuchh to samjh main nahi aata aap kya likh rahe ho...
aur ye word verification kab hata rahe ho
Post a Comment