LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Argument list too long with all commands (https://www.linuxquestions.org/questions/linux-newbie-8/argument-list-too-long-with-all-commands-857750/)

pastagage 01-21-2011 05:08 AM

Argument list too long with all commands
 
Hi there,

I got a weird error that reads "Argument list too long" in all my directories, and whatever command I use:


pastagage@Lulu:~$ ls
bash: /bin/ls: Argument list too long
pastagage@Lulu:~$ cd /
pastagage@Lulu:/$ ls
bash: /bin/ls: Argument list too long
pastagage@Lulu:/$ ls -al
bash: /bin/ls: Argument list too long
pastagage@Lulu:/$ man
bash: /usr/bin/man: Argument list too long
pastagage@Lulu:/$ ping
bash: /bin/ping: Argument list too long
pastagage@Lulu:/$ su
bash: /bin/su: Argument list too long
pastagage@Lulu:/$ vi
bash: /bin/vi: Argument list too long


I know that some commands such as "rm" and "ls" can print this command if the number of files is too important but I do NOT have a lot of files in my directories...
Even "man" doesnt work !
Do you have any idea of the problem ?

Everything worked fine this morning. I am using Ubuntu 11.04 and I just updated this morning (using Update Manager - is it related ?).

FYI: everything works fine when I log in as root.

Thank you fro your help ;)

pastagage 01-21-2011 06:25 AM

I understood my error ! It came from me changing the .bashrc. Indeed, I added PATH=${PATH}:$(find /usr/local/bin/ -type d | tr '\n' ':' | sed 's/:$//') so it can recursively look in folders. The problem is that I installed a huge Perl module in this dir which caused this problem, hehehe


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