LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-21-2011, 06:08 AM   #1
pastagage
LQ Newbie
 
Registered: Jan 2011
Location: Alps
Distribution: Debian 6.0.6
Posts: 6

Rep: Reputation: 0
Question 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

Last edited by pastagage; 01-21-2011 at 07:23 AM.
 
Old 01-21-2011, 07:25 AM   #2
pastagage
LQ Newbie
 
Registered: Jan 2011
Location: Alps
Distribution: Debian 6.0.6
Posts: 6

Original Poster
Rep: Reputation: 0
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

Last edited by pastagage; 01-21-2011 at 07:27 AM.
 
  


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
Argument list too long ust Linux - Software 11 10-26-2009 11:16 AM
Argument List Too Long - For ALL Commands peteHelgren Linux - General 17 07-12-2008 06:44 AM
Help: tar = argument list too long k2merlinsix Linux - General 13 03-26-2008 02:41 PM
Argument list too long trutnev Linux - General 3 04-22-2004 05:32 PM
/bin/rm: Argument list too long dragon49 Linux - Software 1 09-02-2003 01:27 PM

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

All times are GMT -5. The time now is 03:00 PM.

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