LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .bashrc in Linux mint debian (https://www.linuxquestions.org/questions/linux-newbie-8/bashrc-in-linux-mint-debian-4175447664/)

Leovinbam 01-29-2013 06:32 AM

.bashrc in Linux mint debian
 
Dear members
I installed linux mint debian but i cant see .bashrc like in the ubuntu linux
where is it located. and if not available where do I customize my path to intalled packages like gmt and where do I set my custom alias

I have installed GMT using sudo apt-get install gmt. it has installed but I cant see its destination. i tried in /usr/bin and couldn't get it

pan64 01-29-2013 06:34 AM

you can create .bashrc in your home

Leovinbam 01-29-2013 06:51 AM

.bashrc in Linux mint debian
Thanks for your help. but where can i find gmt that I installed I still can't see it

m.a.l.'s pa 01-29-2013 07:28 AM

Quote:

Originally Posted by Leovinbam (Post 4879772)
.bashrc in Linux mint debian
Thanks for your help. but where can i find gmt that I installed I still can't see it

Try:
Code:

whereis gmt

pan64 01-29-2013 07:29 AM

you can use the command locate gmt. Before executing you may need another command (as root): updatedb

shivaa 01-29-2013 07:38 AM

You can search it using,
Code:

~$ find / -name "gmt" -print
Then you can set the path into your path variable, as:-
Code:

export PATH=$PATH:/path/to/gmt
Or add this line in your .bashrc to make it permanant.

onebuck 01-29-2013 11:14 AM

Member Response
 
Hi,

Welcome to LQ!
Quote:

Originally Posted by Leovinbam (Post 4879760)
Dear members
I installed linux mint debian but i cant see .bashrc like in the ubuntu linux
where is it located. and if not available where do I customize my path to intalled packages like gmt and where do I set my custom alias

I have installed GMT using sudo apt-get install gmt. it has installed but I cant see its destination. i tried in /usr/bin and couldn't get it

Look at this;
Quote:

You could setup a .bashrc & .bash_profile for your user.
sample .bash_profile;
Code:

 
 ~$ cat .bash_profile
---------cut---------
 # .bash_profile
 #08-30-06 12:21
 #
 # Source .bashrc
 if [ -f ~/.bashrc ]; then
         . ~/.bashrc
 fi
  ----------cut-------

Code:

sample .bashrc;
 :~$ cat .bashrc
  ----------cut-------
 #.bashrc
 #08-30-06 12:20
 

 # Add bin to path
 
 export PATH="$PATH:/sbin:/usr/sbin:$HOME/bin"
 
 #export PATH="$PATH:$HOME/bin"
 
 # Dynamic resizing
 shopt -s checkwinsize
 
 # Custom prompt
 #PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
 
 #08-29-06 11:40
 
 if [ `id -un` = root ]; then
   PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
  else
   PS1='\[\033[1;32m\]\h:\w\$\[\033[0m\] '
 fi
 
#
 # Add color
 eval `dircolors -b`
 
 # User defined aliases
 alias cls='clear'
 alias clls='clear; ls'
 alias ll='ls -l'
 alias lsa='ls -A'
 alias lsg='ls | grep'
 alias lsp='ls -1 /var/log/packages/ > package-list'
 alias na='nano'
 alias web='links -g -download-dir ~/ www.google.com'

 #08-29-06 11:50

 #To clean up and cover your tracks once you log off
 #Depending on your version of BASH, you might have to use
 # the other form of this command
   trap "rm -f ~$LOGNAME/.bash_history" 0
 
#The older KSH-style form
 #  trap 0 rm -f ~$LOGNAME/.bash_history
----------cut--------

The .bashrc is very useful!
You can modify the above '.bashrc' to suit your user needs.
HTH!


All times are GMT -5. The time now is 03:07 AM.