LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-29-2013, 06:32 AM   #1
Leovinbam
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
.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
 
Old 01-29-2013, 06:34 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,018

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
you can create .bashrc in your home
 
1 members found this post helpful.
Old 01-29-2013, 06:51 AM   #3
Leovinbam
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
.bashrc in Linux mint debian
Thanks for your help. but where can i find gmt that I installed I still can't see it
 
Old 01-29-2013, 07:28 AM   #4
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Posts: 198

Rep: Reputation: 34
Quote:
Originally Posted by Leovinbam View Post
.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
 
Old 01-29-2013, 07:29 AM   #5
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,018

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
you can use the command locate gmt. Before executing you may need another command (as root): updatedb
 
Old 01-29-2013, 07:38 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
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.
 
Old 01-29-2013, 11:14 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,385
Blog Entries: 3

Rep: Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479Reputation: 1479
Member Response

Hi,

Welcome to LQ!
Quote:
Originally Posted by Leovinbam View Post
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux Mint or Debian Ztcoracat Linux - General 45 06-19-2012 09:27 PM
Debian or Linux Mint? benc1213 Linux - Newbie 5 05-22-2011 08:44 AM
LXer: Linux Mint Xfce - a new spin based on Debian Testing, plus questions answered by Mint guru Cle LXer Syndicated Linux News 0 04-14-2011 05:00 AM
Linux Mint Debian 201012 Setarkos Linux Mint 1 12-26-2010 09:14 AM
Is there a substantial difference between Linux Mint Ubuntu and Linux Mint Debian? schachwizard Linux Mint 4 10-10-2010 12:27 AM


All times are GMT -5. The time now is 05:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration