Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I think I messed up my bashrc file adding Java to the path.
None of my commands will work, I cant cd,ls,gedit or sudo.
I tried to manually find my bashrc and change it back but I cant access it because it says I dont have permissions.
How can I reset my bashrc in this state?
Try this:
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
Most things should work now to fix your ~/.bashrc
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
When I was setting up my Ubuntu environment, I think I mistyped and did something like this:
echo 'srouce /opt/whatever'
And now when I open terminal, the first line is always:
srouce: command not found
How can I get fix this issue?
Fix the misspelling in your shell startup files:
sed -i 's/srouce/source/' .bashrc .profile
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm running Linux Mint 14 and accidentally replaced the contents of /etc/environment file. It was originally something like:
PATH=/usr/bin
but with some extra stuff. At the moment, most commands don't work in the terminal. If I do "ls", I get "command not found". Does anyone know the standard contents of this file is?
On ubuntu 12.04 it is:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I just switched my shell from bash to zsh and I noticed that zsh is not using same version of vim that I use in bash. Wondering why that might be the case? Do I need to set some config?
EDIT
remove other stuffs
You either have defined an alias for vim in one of them, or the value of the PATH variable is different.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I just uninstalled a program (ros) from my computer (ubuntu) using the ubuntu software center.
However, since this moment, whenever I open a shell, I get the following message:
bash: /opt/ros/groovy/setup.bash: No such file or directory
Did I do anything wrong?
Have a look at ~/.bash_profile
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
It's always a bit tedious to go from $HOME to some directory to run something, so is there a way I can save a directory to like $MYPATH and do cd $MYPATH from anywhere?
This is what you want http://cygwin.com/cygwin-ug-net/setup-env.html
so everytime you start a session you can
export MYPATH="path where you want to go to"
alternatively you can save the above line in the ~/.bashrc this way when you start a new session, the variable is set automatically