.bashrc in Ubuntu 14.04

Login or Register to Reply

Thread Tools Search this Thread
# 1  
.bashrc in Ubuntu 14.04

I am getting this:

cmccabe@DTV-A5211QLM:~$ cat ~/.bashrc
Command 'cat' is available in '/bin/cat'
The command could not be located because '/bin' is not included in the PATH environment variable.
cat: command not found
cmccabe@DTV-A5211QLM:~$ nano .bashrc
Command 'nano' is available in the following places
 * /bin/nano
 * /usr/bin/nano
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
nano: command not found

I did add to path:
 echo 'export PATH=/home/cmccabe/Desktop/NGS/picard-tools-1.139' >> .bashrc

which appears to be wrong? How do I get the .bashrc to be like it was? Thank you Smilie.
# 2  
You have replaced PATH with only your custom path. You removed all the old paths from it in the process.

You should not be editing your bashrc with echo. Last thread you had 3 or 4 conflicting broken entries appended to it.

You should remove what you added, then add this:

export PATH="${PATH}:/home/cmccabe/Desktop/NGS/picard-tools-1.139"

# 3  
How can I remove this if I can not access nano? Is there a command? Thank you Smilie.
# 5  
So is the below the correct way to add to path so it is permanent for the user? Thank you Smilie.

export PATH="${PATH}:/home/cmccabe/Desktop/NGS/picard-tools-1.139 >> .bashrc

# 7  
it's back to the way it was. I seem to have trouble adding to path in the.bashrc so it stays for the user. I add to path then. bashrc and that seems to work. Thank you Smilie.

EDIT: is adding path to .profile better and would the below be correct?

export PATH="$PATH:$HOME/home/cmccabe/Desktop/NGS/picard-tools-1.139" >> ~/.profile

Last edited by cmccabe; 09-22-2015 at 12:23 PM.. Reason: added edit question
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
.bashrc file
Hi experts, I am using bash shell and I cant find any .bashrc file in my home dir. Can anybody please help me out here.... If .bashrc file is not there, from where my shell config operates? Also I want to set my prompt like... $ Please advice.... Shell Programming and Scripting
Shell Programming and Scripting
i have made a few changes to my bashrc file...have set a few environmental variable that my shell scripts use. Is there any way that these changes can reflect in evryone else's bashrc who are in the network or do all of them have to copy those changes to their own bashrc file.... Shell Programming and Scripting
Shell Programming and Scripting
how do i look for my .bashrc file
hi i am using cygwin and would like to modify my .bashrc file. How can search to find where it is? I have looked at multiple bashrc file in /etc but none of them seemed to work..thanks... Shell Programming and Scripting
Shell Programming and Scripting
Having trouble with .bashrc
hey guys, Im trying to find all my .bashrc files in the home directory. ~/etc/bash.bashrc is the only thing i can find but its outside of my /home Could the files be hidden? I want to see all my .bashrc files in my /home structure... <cries>... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
from bashrc to sh..??
:) as soon as i installed my software a couple of weeks ago.. (fedora core 2 vs, 2.6.8-1.521) i decided to switch the shell to sh shell and i know that .bashrc is the bash profile file(???) i want to use the sh version of the same file and make it the main profile file.. how can I switch it and...... Shell Programming and Scripting
Shell Programming and Scripting