Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [bash-profile]

The tag has no usage guidance.

0
votes
0answers
11 views

gdal compiled in user folder not read (although PATH is set in .bash_profile

I am working on a cluster where I do not have sudo permissions. I need to use "gdal". I installed it by compiling from source on a user-defined folder, and then added the path to my user .bash_profile ...
0
votes
0answers
48 views

Do programs added to PATH not work with the source tool?

I have mix added to my bash_profile like so: export PATH="$PATH:~/.mix" This gives me access to rebar, and it works correctly: chris$ rebar -V rebar 2.6.2 R15B03 20160628_123811 git 2.6.2 However, ...
0
votes
0answers
17 views

Can some or all profile/login scripts be bypassed on local console login?

The situation I'm thinking of is that something in /etc/profile or ~/.profile or ~/.login or similar is causing you to be logged out immediately or some other problem/mischief, and you're at a text-...
0
votes
0answers
64 views

Fedora 29: not reading changes in .bash_profile

I have added some aliases and functions to the .bash_profile but they are not available when I start a new Command Line Prompt. Neither they are available after a reboot. I need to execute a 'source ~/...
1
vote
1answer
178 views

Set up .bash_profile and .bashrc for local and remote access

I've noticed that when I open a terminal on my ubuntu machine locally, it sources .bashrc, but when I connect via ssh, it sources .bash_profile. I added a line in .bashrc to source .bash_profile so I ...
0
votes
2answers
80 views

none of command works after trying to add ~/.bash_profile

I was trying to add JAVA_HOME in the path variable. I downloaded Java JDK and done following: nano ~/.bash_profile added following lines and saved the file: export JAVA_HOME=$(/usr/libexec/java_home)...
0
votes
1answer
166 views

Customize bash looks for user profile on debian 9

I am trying to customize the bash prompt on Linux Debian 9. I got the script from Github and I modified the file .bashrc On the terminal, when I log in as root, I can see the customization I was ...
1
vote
1answer
202 views

sudo not executing bashrc as expected

Overall issue is when I log in, my prompt appears correctly formatted as per the /etc/bashrc but when I sudo to another user using bash, the prompt gets fubar'd. Essential formatting in the /etc/...
0
votes
1answer
128 views

Role of export -f statement when creating functions in bash_profile

I came across a bash_profile file that makes use of the export -f statement in the following manner: # Run xelatex and BibTeX function xelatex_bibtex { xelatex -shell-escape "${1}.tex" && ...
0
votes
3answers
92 views

How to break a long line in .bash_profile

I have a very long line in my .bash_profile, as below: export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/cuda/lib:$HOME/anaconda2/lib:/usr/local/lib:/usr/lib:/opt/intel/compilers_and_libraries/mac/lib:/...
-3
votes
1answer
48 views

How set more than one paths has to be added to the PATH environment variable and other variable? [duplicate]

I am adding commands to $HOME/.bash_profile file export PATH=[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin:$PATH export ANDROID_HOME=/home/harsh/SDK export PATH=$PATH:$ANDROID_HOME/tools Now I have ...
1
vote
0answers
302 views

execute profile files at sftp login

My Debian server is configured to jail the users in ther home directory after login with sftp (that works). Now im trying to execute a profile for the user. I was thinking sftp is a non-login shell ...
1
vote
1answer
48 views

Is it a good practice to make different configuration files as symlinks to some scripts under the same directory?

I was wondering if it is a good practice to make the following configuration files as symlinks to some scripts under a directory e.g. ~/program_files/configurations/. The scripts /etc/rc.local, /...
-1
votes
2answers
2k views

put “source /etc/profile” in /etc/bash.bashrc and unable to open terminal window in ubuntu 16.04

I put "source /etc/profile" in /etc/bash.bashrc and unable to open terminal window in ubuntu 16.04, and now, whenever I try to open a terminal window, it closes after a few seconds. During those few ...
17
votes
4answers
37k views

Completely restart Bash

Is there a way to completely restart Bash and reload .bashrc and .profile and the like? I'd like to make sure my changes worked out properly after editing these files.