Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-18-2015, 06:32 AM   #1
LQ Newbie
Registered: Dec 2015
Posts: 6

Rep: Reputation: Disabled
Too many arguments error

what happens when this error comes i.e too many arguments.I have a doubt that after running rm * its give me error,so is files deleted or not from my directory.
Old 12-18-2015, 06:53 AM   #2
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
Are you sure that the message is "too many arguments",
what you do is rm *? Be careful with this command or you might end up deleting something you don't want to.

May it be this? /bin/rm: cannot execute [Argument list too long]

This happens because it expands the asterisk, then you get a very long command line.
It won't delete anything if it's giving that error.
1 members found this post helpful.
Old 12-18-2015, 07:02 AM   #3
LQ Newbie
Registered: Dec 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you
Old 12-18-2015, 09:58 PM   #4
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,842

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
The reason it doesn't work is because the shell creates the parameter list while parsing the command line. This usually doesn't fail - but when the exec system call is used to invoke the /usr/bin/rm utility, the exec files with this error.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error: too few arguments to function `d_path' Binu Linux - Kernel 2 05-30-2013 11:07 PM
[SOLVED] Too many arguments error qweeak Programming 5 01-25-2012 05:10 PM
[SOLVED] .sh doesn't handle [ ] processing right? error: [: too many arguments jonathansfl Linux - Software 3 12-09-2010 09:53 AM
error: too few arguments to function ‘register_chrdev_region’ kulturfenster Linux - Kernel 1 11-29-2009 07:48 AM
RPC Error : Can't encode arguments devnux Programming 1 06-19-2008 06:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration