LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 05: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, 05:34 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,936

Rep: Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323
you can create .bashrc in your home
 
1 members found this post helpful.
Old 01-29-2013, 05: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, 06:28 AM   #4
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Distribution: Debian, Arch, Kubuntu
Posts: 366

Rep: Reputation: 139Reputation: 139
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, 06:29 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,936

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

Rep: Reputation: 286Reputation: 286Reputation: 286
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, 10:14 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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



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
Is there a substantial difference between Linux Mint Ubuntu and Linux Mint Debian? schachwizard Linux Mint 9 07-29-2015 02:24 AM
[SOLVED] Linux Mint or Debian Ztcoracat Linux - General 45 06-19-2012 08:27 PM
Debian or Linux Mint? benc1213 Linux - Newbie 5 05-22-2011 07: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 04:00 AM
Linux Mint Debian 201012 Setarkos Linux Mint 1 12-26-2010 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration