Unix/Linux Go Back    


Fedora is an operating system centered on the Linux open source kernel and is developed by the community-supported Fedora Project. Fedora is sponsored by Red Hat. Fedora contains software distributed under a free and open-source license. Fedora focuses on innovation, integrating and adopting new technologies and working closely with various Linux communities. The default desktop in Fedora is the GNOME desktop environment and the default user interface is the GNOME Shell. Other desktop environments include KDE Plasma, Xfce, LXDE, MATE and Cinnamon. Security is an important aspect of Fedora with one specific security feature, Security-Enhanced Linux, implementing a variety of software security policies, including mandatory access controls.

.bashrc in Ubuntu 14.04

Fedora


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-21-2015
cmccabe cmccabe is offline
Registered User
 
Join Date: Nov 2013
Last Activity: 29 March 2017, 1:02 PM EDT
Location: Chicago
Posts: 1,064
Thanks: 612
Thanked 11 Times in 11 Posts
.bashrc in Ubuntu 14.04

I am getting this:


Code:
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:

Code:
 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 Linux.
Sponsored Links
    #2  
Old Unix and Linux 09-21-2015
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 28 March 2017, 4:17 PM EDT
Location: Saskatchewan
Posts: 22,020
Thanks: 1,065
Thanked 4,130 Times in 3,822 Posts
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:


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

Sponsored Links
    #3  
Old Unix and Linux 09-21-2015
cmccabe cmccabe is offline
Registered User
 
Join Date: Nov 2013
Last Activity: 29 March 2017, 1:02 PM EDT
Location: Chicago
Posts: 1,064
Thanks: 612
Thanked 11 Times in 11 Posts
How can I remove this if I can not access nano? Is there a command? Thank you Linux.
    #4  
Old Unix and Linux 09-21-2015
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 28 March 2017, 4:17 PM EDT
Location: Saskatchewan
Posts: 22,020
Thanks: 1,065
Thanked 4,130 Times in 3,822 Posts
Type the absolute path of the command, like /usr/bin/nano
Sponsored Links
    #5  
Old Unix and Linux 09-21-2015
cmccabe cmccabe is offline
Registered User
 
Join Date: Nov 2013
Last Activity: 29 March 2017, 1:02 PM EDT
Location: Chicago
Posts: 1,064
Thanks: 612
Thanked 11 Times in 11 Posts
So is the below the correct way to add to path so it is permanent for the user? Thank you Linux.


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

Sponsored Links
    #6  
Old Unix and Linux 09-21-2015
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 28 March 2017, 4:17 PM EDT
Location: Saskatchewan
Posts: 22,020
Thanks: 1,065
Thanked 4,130 Times in 3,822 Posts
No. Try nano.
The Following User Says Thank You to Corona688 For This Useful Post:
cmccabe (09-21-2015)
Sponsored Links
    #7  
Old Unix and Linux 09-21-2015
cmccabe cmccabe is offline
Registered User
 
Join Date: Nov 2013
Last Activity: 29 March 2017, 1:02 PM EDT
Location: Chicago
Posts: 1,064
Thanks: 612
Thanked 11 Times in 11 Posts
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 Linux.

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


Code:
 
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
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unset .bashrc cokedude UNIX for Advanced & Expert Users 9 03-16-2011 02:42 PM
bashrc lassimanji Shell Programming and Scripting 2 04-24-2009 02:40 PM
how do i look for my .bashrc file npatwardhan Shell Programming and Scripting 12 01-28-2009 01:43 PM
/etc/bashrc umask itik Ubuntu 3 12-10-2008 02:21 AM
from bashrc to sh..?? moxxx68 Shell Programming and Scripting 3 09-13-2004 05:39 AM



All times are GMT -4. The time now is 08:47 PM.