Home   Help Login Register  
Welcome, Guest. Please login or register.

Login with username, password and session length

Search
Free Website WooThemes - Quality Themes, Great Support
Pages: [1]   Go Down
Print
Topic: /bin/rm: Argument list too long  (Read 3826 times)
« on: October 16, 2008, 09:52:11 AM »
HRamesh Offline
Newbie

View Profile
*

iTrader: 0
Posts: 34



Hi,

I am getting /bin/rm: Argument list too long error while deleting files using below command:

rm -rf somenane*

Any help would be appreciated.

Ramesh

Share this topic on AskShare this topic on BlinkbitsShare this topic on BlinklistShare this topic on BloglinesShare this topic on BmarksShare this topic on Del.icio.usShare this topic on DiggShare this topic on DzoneShare this topic on FacebookShare this topic on Feed Me LinksShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on NetvouzShare this topic on NewsvineShare this topic on OneviewShare this topic on RedditShare this topic on RojoShare this topic on ScuttleShare this topic on ShadowsShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on TipdShare this topic on YahooShare this topic on Google buzz
Logged
« Reply #1 on: October 16, 2008, 12:30:16 PM »
Kailash Offline
Administrator
Newbie

View Profile WWW
*****

iTrader: 50
Posts: 286



It seems that the total number of files are high. You can check it using the following command:

ls -l | wc -l

Try to delete in a batch (500/1000 files) at a time.

Kailash
Logged

« Reply #2 on: July 22, 2010, 05:08:51 PM »
jantillon Offline
Newbie

View Profile
*

iTrader: 0
Posts: 1



If you are absolutely sure that you want to remove everything in the directory use xargs.  

find . -name '*' | xargs rm

Or add a filestring to the wildcard
« Last Edit: July 22, 2010, 05:12:25 PM by jantillon » Logged
Pages: [1]   Go Up
Print
Jump to:  

Untitled Document
(c) 2012 HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Powered by SMF 1.1.16 | SMF © 2011, Simple Machines | Forum style designed by PixelSlot
Google - Sitemap - XML Sitemap