Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Messed my .bashrc, have no commands
Name: Luis Garduno Date: April 14, 2003 at 22:42:22 Pacific OS: Mandrake Linux 9.0 CPU/Ram: P3 / 192MB
Comment:
I changed my CLASSPATH and PATH variables in my .bashrc file and when I opened the terminal again I had no commands. The bash says that it cannot find any command. I want to know the folder where all the commands are? I tryied /usr/bin/ but didnt worked. Hope you can help me with this.
Name: Dlonra Date: April 15, 2003 at 06:03:58 Pacific
Reply:
find / -type d -name bin
0
Response Number 2
Name: Dlonra Date: April 15, 2003 at 06:08:51 Pacific
Reply:
better: find / -type d -maxdepth 4 -name '*bin'
0
Response Number 3
Name: Balram Adlakha Date: April 15, 2003 at 12:33:08 Pacific
Reply:
you sure you haven't messed up the path variable? Just enter the binary paths to the various in this form: PATH=$PATH:/home/local/bin:/opt/foo/bin
($PATH is added so that the existing variables in /etc/profile are also added)
0
Response Number 4
Name: 3Dave Date: April 16, 2003 at 08:09:17 Pacific
Reply:
find would work....providing that you can find the binary location as you can't run any commands!
Most executables are stored in: /bin - basic commands like "ls" /sbin - basic admin commands like "mount" /usr/bin - other stuff like "find" /usr/sbin - other root stuff like "urpmi" /usr/local/bin and /usr/local/sbin - tend to be locally installed stuff, specific to the computer like user installed programs etc.
As balram said, make sure that you have PATH=$PATH:blah:blah:blah in your .bashrc
Summary: HI, I'm new with Linux-Mandrake 7.2 i suddenly lose my mouse. Work perfect before and now, nothing. I use F12 and keypad number to move FOR NOW... I go to Drakconf to configure again but my selecti...
Summary: Such as negative attitude. He probably wrote the songs and recorded them himself. 8) The commands you're looking for are mkisofs and cdrecord. There's a nice doc called /usr/doc/Linux-HOWTOs/CD-W...
Summary: I have a fresh install of Mandrake 8.1 and when I compile my C programs as follows: >gcc -Wall -g -o prog prog.c No errors, no warnings. I then try and run the program: >prog < data Nothing happen...