hi, why am i getting this error when i try to remove some old files i dont need anymore?
this is my command:
rm -f /home/var/www/web/oldfiles/dynami*
please help me.
Comments and replies About -bash: /bin/rm: argument list too long
wallpaperama:
you need to cd to /home/var/www/web/oldfiles/
send the command again like this:
rm -f dynami*
try it
carl:
i still am getting:
-bash: /bin/rm: argument list too long
when i send this command
wallpaperama:
i think rm has a limit, so you will have to do a work-around
you can do is use find and pipe it so each file found, remove once by one.
like this:
commmand:
change to the directory where all your files are located:
cd /home/var/www/web/oldfiles/
now find and remove each file with the wild card
find . -name 'wallpapers_*' | xargs rm
hope that helps
carl:
oh wow, that worked, thanks so much, ive been trying to get this fix. i started to delete one by one, but there were like 2000 files in there. you saved me so much time
:)
Prakash:
dear
i also got this error while deleting certain files.
to overcome this just use the command like this
echo /home/var/www/web/oldfiles/dynami* | xargs /bin/rm -f
enjoy!!!!!!!!!!!!!!!!!!!!