Linked Questions

66
votes
6answers
3k 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 ...
20
votes
4answers
30k 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 ...
2
votes
1answer
781 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 ...
1
vote
1answer
403 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 ...
9
votes
2answers
16k 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 ...
10
votes
2answers
9k 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?
14
votes
2answers
16k 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 ...
5
votes
1answer
3k views

export PATH= not holding in Bash OS X

This is somewhat of a noob question but I'm having problems adding to my path and can't remember how I got changes working the last time I did it. So I'm using the command "export ...
1
vote
2answers
11k 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 ...
1
vote
2answers
6k 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 ...
6
votes
1answer
2k 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 ...
2
votes
1answer
4k 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 ...
3
votes
1answer
3k views

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

H I added a directory to the $PATH variable 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 whats's wrong. ...
2
votes
4answers
3k 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 ...
-1
votes
2answers
877 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 ...
3
votes
1answer
880 views

Where do I initialize my environment when the shell loads?

I am using bash shell and have content in my .bashrc. When Terminal app opens (on my mac), this file however is not initialized. I am always able to manually . ./.bashrc, however i'd rather not have ...
4
votes
1answer
616 views

Bash shell: how to reconcile portable configuration files and GUI terminal start-up types (login or interactive)?

In an attempt to "properly" implement a standard configuration of my preferred shell, bash, for use across multiple platforms, I've come across some confusion when dealing with terminals that are ...
2
votes
2answers
467 views

Confused about setting environment variables

I've been trying to set some environment variables for hours and it does not work grml Here the setting: I use Debian 6 and there the terminal from the desktop. In this window, I type "su" to login ...
1
vote
3answers
596 views

Custom command in terminal with a variable

Redhat Linux Enterprise Editing a terminal profile -- Run a custom command instead of my shell Custom command: tail -3000f /home/user1/folder/$PROJECT/folder2/folder3/text.log When I save it and ...