Linked Questions

266 votes
6 answers
130k views

Choosing between .bashrc, .profile, .bash_profile, etc [duplicate]

This is embarrassing, but after many years of using POSIX systems full time, I still have a hard time figuring out if a shell customization should go in .bashrc, .profile, or somewhere else. Not to ...
Avdi's user avatar
  • 2,850
25 votes
4 answers
56k views

What's the difference between .profile and .bash_profile, and when do you configure which? (Mac) [duplicate]

Possible Duplicate: Difference between .bashrc and .bash_profile What's the difference between .profile and .bash_profile, and when do you configure which? I.e if I configure the .bash_profile, ...
Imran's user avatar
  • 373
2 votes
1 answer
982 views

Why is there a .bash_profile and .bashrc, they seem to do the same thing? [duplicate]

Possible Duplicates: When does mac/ubuntu use .bash_profile and/or .bashrc? Difference between .bashrc and .bash_profile I loaded up ubuntu on a vm on my windows computer, and my .bash_profile ...
user27449's user avatar
  • 6,970
1 vote
1 answer
763 views

When does mac/ubuntu use .bash_profile and/or .bashrc? [duplicate]

Possible Duplicate: Difference between .bashrc and .bash_profile Are they both the same type of file in terms of setting the bash terminal settings, and if no .bash_profile exists then it uses ....
user27449's user avatar
  • 6,970
121 votes
6 answers
305k views

How do I modify my Git Bash profile in Windows?

I'm using Git Bash on Windows 7 and would like to set up Bash profile aliases such as alias gs='git status' to make my life easier. How can I do this?
Brian's user avatar
  • 1,431
51 votes
7 answers
146k views

Where's .bashrc for root?

I know it's not best practice, but on my dev system I login as root. What's the equivalent of the .bashrc file so I can alias some functions? I've found the /etc/bash.bashrc & /etc/bash.bashrc....
mbb's user avatar
  • 2,556
37 votes
2 answers
120k views

Open gnome terminal programmatically and execute commands after bashrc was executed

For starting my dev environment I wrote a little script. One part is to open a gnome terminal with several tabs where automatically some commands should be executed. Some of those commands depend on ...
medihack's user avatar
  • 920
49 votes
3 answers
75k views

Environment variables in bash_profile or bashrc?

I have found this question [blog]: Difference between .bashrc and .bash_profile very useful but after seeing the most voted answer (very good by the way) I have further questions. Towards the end of ...
Viriato's user avatar
  • 613
14 votes
3 answers
12k views

Adjusting $PATH in /etc/profile does not affect root

I added a directory to PATH in /etc/profile. This works for my user account but not for root. It's easy to add it to my /root/.bashrc but I would like to understand what's wrong. It's a mostly ...
techshack's user avatar
  • 251
14 votes
1 answer
18k views

~/.profile is not sourced on startup

I've recently installed virtualenv + virtualenvwrapper on Linux Mint 10 LXDE. For convenience I've added the standard WORKON_HOME settings to my ~/.profile export WORKON_HOME=$HOME/Envs source /usr/...
Botond Béres's user avatar
12 votes
2 answers
7k views

Make OS X Terminal commands I type BOLD

I'd like to make commands I've typed (input) into terminal stand out from all the output. For example: imac:~ buster$ chmod -R g-w myfolder imac:~ buster$ cd myfolder imac:myfolder buster$ ls -l ...
Meltemi's user avatar
  • 6,987
3 votes
2 answers
12k views

Understanding .bashrc and .bash_profile [duplicate]

Possible Duplicate: When should I put configurations into .bashrc vs into. .bash_profile? I am a n00b when it comes to working in Linux env and would like to know the purpose of .bashrc and ....
name_masked's user avatar
5 votes
4 answers
11k views

Aliases in .bash_profile do not work

I have added some cd blah blah commands as alias in my .bash_login so as to ease changing directories.It was working fine .Suddenly though none of the aliases in there work .It says command not found ....
Manish's user avatar
  • 239
3 votes
2 answers
23k views

Command shortcut to ./startup.sh Tomcat

Every time I need to start or stop Tomcat, I am navigating to: /Tomcat_Dir/bin and once I am in the folder I enter: ./Startup.sh And to stop the server, I navigate to the same directory and enter:...
sc_ray's user avatar
  • 145
4 votes
2 answers
19k views

How to automatically set PulseAudio default sink to remote server at boot - Ubuntu 9.04

I use the Pulseaudio Device Chooser to set the default sink (on a laptop) to a remote server. This works fine. When i reboot my laptop, the default sink reverts back to "default" (the laptop sound ...
Dave M's user avatar
  • 71

15 30 50 per page