Computing.Net > Forums > Linux > Messed my .bashrc, have no commands

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

Reply to Message Icon

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.

Luis



Sponsored Link
Ads by Google

Response Number 1
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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


DNS List 5.1 surround sound in lin...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Messed my .bashrc, have no commands

LOSE MY MOUSE IN LINUX-MANDRAKE 7.2 www.computing.net/answers/linux/lose-my-mouse-in-linuxmandrake-72/2720.html

My Cd Bunner is mess up www.computing.net/answers/linux/my-cd-bunner-is-mess-up/2488.html

Can't run C programs -> no command? www.computing.net/answers/linux/cant-run-c-programs-no-command/14144.html