LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
Too many arguments error


Hi,
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, 07:53 AM   #2
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 45
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, 08:02 AM   #3
yendhe
LQ Newbie
 
Registered: Dec 2015
Posts: 6

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

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
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.
 
  


Reply


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-31-2013 12:07 AM
[SOLVED] Too many arguments error qweeak Programming 5 01-25-2012 06:10 PM
[SOLVED] .sh doesn't handle [ ] processing right? error: [: too many arguments jonathansfl Linux - Software 3 12-09-2010 10:53 AM
error: too few arguments to function ‘register_chrdev_region’ kulturfenster Linux - Kernel 1 11-29-2009 08:48 AM
RPC Error : Can't encode arguments devnux Programming 1 06-19-2008 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 AM.

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