Advertisement

urgent help with linux

Started by July 02, 2006 12:53 PM
2 comments, last by nmi 18 years, 2 months ago
Hi, I messed with .bashrc and screwed it up... and now the most basic commands, such has man or pico, are not found.... help?! Thanks
"Through me the road to the city of desolation,Through me the road to sorrows diuturnal,Through me the road among the lost creation."
They are probably in /bin, or /usr/bin, or /usr/local/bin, etc. So if you need them, call them directly by prefixing them with the full path. With that in mind, fire up your favourite editor and use that to fix your .bashrc. If you don't know how you broke it, post it here and someone can probably fix it.
Advertisement
Did you screw the .bashrc in your home directory?
If so at /etc/ there s a global bashrc most likely.
http://www.8ung.at/basiror/theironcross.html
Check if you have a file /etc/skel/.bashrc, which you can use to rebuild your .bashrc.
Also make sure that your environment variable $PATH contains at least /usr/bin (i.e. check with "echo $PATH"). When you made changes to your .bashrc, reread it via "source ~/.bashrc".

This topic is closed to new replies.

Advertisement