Linked Questions
25 questions linked to/from Difference between .bashrc and .bash_profile
51
votes
7
answers
143k
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....
263
votes
6
answers
128k
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 ...
121
votes
6
answers
297k
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?
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, ...
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 ....
48
votes
3
answers
74k
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 ...
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 ...
1
vote
3
answers
2k
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 ...
37
votes
2
answers
119k
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 ...
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
...
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 ...
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 ....
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:...
3
votes
2
answers
864
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
2
answers
2k
views
Ubuntu color text in terminal not showing up unless I run
I am using a droplet (vps) from digital ocean, and when I first got it and logged in the text was colorized automatically, I must have changed something to make it not colorized, now I have to either ...
1
vote
2
answers
909
views
Directories appearing twice in $PATH
Following advice from a course, I added the following line to my .bashrc:
export PATH=/home/dodgycoder/kafka_2.12-2.3.1/bin:$PATH
Now, when I open a terminal window I get this directory shown twice:
...
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/...
5
votes
1
answer
6k
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 PATH=$PATH:/Users/...
5
votes
1
answer
5k
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 ...
5
votes
1
answer
1k
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 ...
3
votes
1
answer
9k
views
shell environment setup for virtualenv/virtualenvwrapper
The question is about shell setup for virtualenvwrapper, an extension to virtualenv (python guide).
Similar questions had been asked many times but with a lot with different answers:
Environment ...
2
votes
1
answer
980
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 ...
1
vote
1
answer
3k
views
how do I run a sudo command and load the environment variables of current logged on user?
I need to run an ssh sudo command.
command is as follows:
ssh -i keyfile [email protected] 'sh -v /opt/dir/script'
the script contains the following:
sudo -E node some.js
the reason I use the -E ...
1
vote
1
answer
760
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 ....
0
votes
1
answer
1k
views
Changed "path" variable in Ubuntu Linux and basic commands have stopped working
I'm using Ubuntu 14.04 (as a virtual machine). I installed TeX Live system over the internet.
Once the installation of TeX live finished, it said
Most importantly, add /usr/local/texlive/2015/bin/...