.bashrc is the Bash shell configuration file for a user's terminal login session.

learn more… | top users | synonyms

1
vote
0answers
26 views

Spelling mistake in ~/.bashrc

I am a newbie and I wanted actually install MeanJS but then I made the following mistake. I wanted to paste this in the terminal: echo 'export PATH=$HOME/.node/bin:$PATH' >> ~/.bashrc But ...
0
votes
1answer
28 views

Why can't I explicitly source a file using su -c?

I'm trying to get su to source /home/ghost/.bashrc, but it doesn't seem to load the contents: $ su -l -c 'source /home/ghost/.bashrc; nvm' ghost -su: nvm: command not found I use nvm to manage Node ...
1
vote
1answer
24 views

What files are ran when I log into the desktop?

I don't know how to phrase this to be clear. I'm not talking about terminals or shells, I know what the difference between login and non-login shells are. What I want to know is when I start up my ...
0
votes
1answer
16 views

Are you sure you want to proceed? on login after editing .bashrc

Why am I being asked Are you sure you want to proceed? on login? I just edited .bashrc and added below given line in it. gnome-terminal -e "sudo -i mount -a" Thanks in advance,
10
votes
3answers
2k views

What if I delete ~/.bashrc file of a user?

I am just curious about what would happen if I delete the ~/.bashrc file of a user. Does even the root user have their own ~/.bashrc file? What if I delete that, or can I?
1
vote
1answer
27 views

Can you explain eval expression in the default .bashrc

I was looking inside /etc/skel/.bashrc and found this line: [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" I understand what the test -x does, but everything onward with eval ...
0
votes
0answers
17 views

Profile.d and aliases. Why do the aliases not work? [duplicate]

I need to define some global aliases for my PC. I defined them in a file zzz.sh in the /etc/profile.d directory. It didn't work. Then I defined those aliases in /etc/bash.bashrc file. It did work as ...
0
votes
1answer
55 views

How can I change the default directory for gnome-terminal without editing .bashrc?

How do I set the default working directory of a gnome-terminal opened via Ctrl-Alt-T or via the Launcher or any other quick means to a gnome-terminal? Presently it defaults to ~. I know about ...
0
votes
1answer
23 views

Ubuntu 14.04 Login Loop when .profile includes .bashrc

I have seen multiple versions of questions asking how to solve the 'Login Loop' problem. I too had this problem and was able to solve it by moving my ~/.profile file to an unreconized file name and ...
4
votes
1answer
39 views

Why does alias in /etc/bash.bashrc not apply to sudo?

I've added the line alias ll='ls -l' to the /etc/bash.bashrc. After a restart, the alias ll from that file affects me, which I checked by commenting out the corresponding alias in my ~/.bashrc ...
0
votes
1answer
15 views

How do i change my locale safely?

1) How do I check which locales are supported on my system? 2) How do I change my locale safely? 3) What are some of the side-effects of doing this? Reason I'm asking these questions is because I ...
2
votes
1answer
43 views

Installation of software fail

now show this bash: /home/jonathan/.bashrc: línea 168: error sintáctico cerca del elemento inesperado `export' bash: /home/jonathan/.bashrc: línea 168: `esac export PATH=$HOME/xdman:$PATH' This is ...
0
votes
2answers
35 views

Is .bashrc correctly setting the graphical terminal title?

From the default .bashrc is this: if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else ...
1
vote
1answer
72 views

${debian_chroot:-} Why bother with :-? [duplicate]

.bashrc and bash.bashrc include: [ -z "${debian_chroot:-}" ] Bash manpage states the following on parameter expansions of the following form: ${parameter:-word} If parameter is unset or null, the ...
0
votes
2answers
29 views

Added `export` command in `.bashrc` to update PATH with binary location — GUI apps don't know about update even though terminal does?

I had to add an: export PATH="/path/to/my/bin:$PATH" to my bash.rc, for progA's binary library location. Now, whenever I start a GNOME Terminal instance, I can type progA and hit return and the ...
0
votes
0answers
115 views

ifort: command not found

I have downloaded and installed Intel Parallel_Studio_xe_2016_update1 After that I have edited my bashrc and compiled two programs.After closing the terminal,I have tried to compile again and then I ...
0
votes
0answers
27 views

gem5- swig edition

I tried to install gem5 sudo apt-get install mercurial scons swig gcc m4 python python-dev libgoogle-perftools-dev g++ zlib1g-dev protobuf-compiler libprotobuf-dev echo "export ...
2
votes
2answers
101 views

Where is my PATH variable being set?

I'm trying to set my path variable to look like this: ...
5
votes
1answer
218 views

Lazy Calculation result of bash functions in alias

I want to open new terminal window in current location by simple command in Ubuntu gnome-terminal --working-directory=`pwd` & disown Work's nice for me. But when I put alias to bashrc alias ...
0
votes
0answers
23 views

Everytime I run a sudo command, the warning comes : sudo: unable to resolve host XXXXX [duplicate]

Some weeks ago, I just changed the apperance of my terminal by making it colorful. It was said to change a particular line in the bashrc file by opening it using this command gedit ~/.bashrc. After ...
0
votes
1answer
29 views

Bash alias error [duplicate]

I am fairly new to bashrc and am learning about the alias feature. I am trying to create an alias that will open my java ide without me having to do 2 commands. This is the commands I usually have ...
0
votes
1answer
41 views

Alias in .bash_aliases executes incorrectly

I have an alias in .bash_aliases and it gives me incorrect output when I trigger it. alias print="echo a b | awk '{print $2}'" incorrect output: ...
4
votes
2answers
163 views

Editing bash.bashrc file and reinstating file copy

I want to edit my bash.bashrc file. Before I do this I know that I should make a back-up of the original file. What do I do if I make a mistake and need to use my back-up? Do I delete the corrupted ...
6
votes
3answers
303 views

how to 'not' execute alias [duplicate]

I have set few aliases in .bashrc file. I need those aliases most of the time, but sometimes I need to run those command without options set in that particular alias. How to not execute alias ...
1
vote
0answers
37 views

Terminal colors don't show

So, have the following in my ~/.bashrc to display my git branch if one exists (works). When I save the file and run source ~/.bashrc, the colors don't show up. All I have is a white on black terminal ...
0
votes
0answers
30 views

Why isn't my ls not changing colors?

For some reason I can't change the colors of the following file extensions. Here is what I added to the end of my ~/.bashrc file: alias ls-"ls --color=auto" LS_COLORS=$LS_COLORS:"*.pl=32:*.lua=35;41" ...
0
votes
1answer
94 views

After editing .bashrc commands return 'command could not be located because '/bin' is not included in the PATH'

I typed something in Bashrc and I can not use commands like cp, gedit, ls, etc. etc anymore. The terminal give me a message like: Command 'ls' is available in '/bin/ls' The command could not be ...
2
votes
0answers
148 views

Why is neither /root/.bashrc nor /root/.profile executed after sudo -i?

I have export PATH="$PATH:/opt/local/bin" in /root/.bashrc and /root/.profile (nothing else in /root/.profile) and /bin/bash is the login shell for root in /etc/passwd. Yet invoking sudo -i (which ...
1
vote
1answer
128 views

Terminal not displaying UTF-8 character(s)

I have changed my bash prompt in "~/.bashrc" and have verified my character encoding is set to UTF-8. I am using the monospace font and Ubuntu 14.04. Here is my "~/.basrc": ...
7
votes
1answer
284 views

Which files are sourced when using su -c?

Context You are working on Ubuntu LTS 14.04. You are logged in as the root user. You run the following command: exec su simple_user -c "/bin/bash /etc/init.d/simple_user_service" So that the ...
1
vote
2answers
964 views

Importing a Python module works from command line, but not from PyCharm

My default Python binary is set to the one with the Anaconda distribution of Python. This is found at /home/karnivaurus/anaconda/bin/python, and I have made this the default by adding to my .bashrc ...
0
votes
3answers
82 views

Run .bashrc commands without opening a terminal [duplicate]

I have been editing my .bashrc file to run some commands, such as appending directories to the PATH variable. However, from my knowledge, .bashrc is only executed when a terminal is opened. ...
1
vote
2answers
35 views

Is there a list of all files that affect PATH?

There's a path in the $PATH environment variable I'd like to change, though I can't find the script that adds it. I've looked in ~/.profile and ~/.bashrc but it's not there. What's a good way of ...
0
votes
0answers
25 views

Why does Terminal not start in “interactive” mode when I click the icon?

Also, is there a way to make that the default behavior? I know it is nit because I have echo statements in my .bashrc and .bash_profile to indicate which is being run and only .bashrc is.
0
votes
0answers
33 views

Can't log in the system after modifying .bashrc

I was trying to configure the Nvidia graphics drivers on Ubuntu 14.04 for CUDA development. I followed the instructions here and added the following to the bottom of my ~/.bashrc: # add cuda ...
2
votes
1answer
60 views

Changing the value of $HOME in .bashrc

First of all a bit of background. I apologise in advance for the misuse of terminology. Please correct me where necessary. For my work I am going to be running simulations remotely via ssh on several ...
2
votes
3answers
445 views

Using a Fork Bomb to prevent interactive shell on root

This question makes two assumptions: My root user's interactive shell runs bash .bashrc is only called on interactive shells If I append the generally known fork bomb (:(){ :|: & };: - do not ...
0
votes
1answer
34 views

as per u r suggestion i wrote ~/.bashrc ~/.profile result came like below typed but i could not loging to my accout help me

Ubuntu 12.04.5 LTS komitla-lakdikapool tty1 komitla-lakdikapool login:komitla Password: Last login: Sep 26 08.48.46 IST 2015 on tty1 Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-09-generic-pac i686) ...
5
votes
2answers
296 views

How to change colours in bash prompt

I have followed the instructions here and in the howto link that is provided there. However nowhere does it appear to say how I can change the colours of the different parts, because currently I set ...
3
votes
0answers
78 views

After editing root .bashrc Unable to login even with tty1-6 and drop to prompt command from recovery mod

I have had the worse two weeks started with Ubuntu 12.04 , and updating to 14.04 had problem , just after a good luck of successfully installing brand new ubuntu 14.04 I now got the nightmare again ...
-1
votes
1answer
82 views

when i open terminal is a blank screen. No directory names or $. So I can't execute any commands

installed Ubuntu 14.4.0 ll of a sudden all i'm getting when I open my terminal is a blank screen. No directory names or $. So I can't execute any commands to update, install, fix or anything. All the ...
0
votes
1answer
99 views

Terminal closes after commands?

So I'm dual booting Ubuntu 14.04 LTS and Windows 10. Yesterday I restarted to boot into my Windows 10 partition. After I finished using Visual Studio, I rebooted back into Ubuntu. Now, for some ...
1
vote
2answers
100 views

making bash prompt Bold

The $PS variable [ashesh@MISTRI ~] $ echo $PS1 \[\033[36m\][\[\033[m\]\[\033[34m\]\u@\h\[\033[m\] \[\033[32m\]\W\[\033[m\]\[\033[36m\]]\[\033[m\] $ I wish to maintain the same colors and text but ...
1
vote
1answer
302 views

bash alias with parameters [duplicate]

I would like to swap from csh to bash, then I have to set the .bashrc with the commands I use. Translating alias with parameters seems to be not easier as I believed. csh: alias gr 'xmgrace -legend ...
0
votes
1answer
82 views

how to configure terminal in a text boot?

I use tmux in xterm and gnome-terminal.Configuring gnome-terminal's background and foreground is not an issue as it can be easily done through gui itself.Few things to mention: I can configure ...
0
votes
0answers
38 views

How to add samtools in the PATH permanently [duplicate]

I installed samtools executables within my bin directory under home directory. Installation works perfectly well. I am using Ubuntu 14.04 version and it has .profile and .bashrc in my home directory ...
-1
votes
1answer
111 views

bash: ${debian_chroot!-}: bad substitution

So I'm learning how to shell script and i got this error. Every thing I've read on the other posts makes it seem like a directory file path like most terminal commands have stashed away. My version of ...
0
votes
2answers
240 views

bash is looking for a missing ' " ' , unexpected EOF

I have problem with bash which is looking for a missing character but I cannot find it. Maybe there is something else wrong? Every time I open the terminal I get this error: bash: ...
1
vote
1answer
241 views

ROS installation:Environment setup:No such a file or directory

according to wiki tutorial of ROS installation. All of the previous steps are ok for me, but when I try to do the part of environment setup. When I type: echo "source /opt/ros/jade/setup.bash" ...
1
vote
2answers
313 views

Why is my function not re-evaluated in PS1?

I'm trying to have a part of my prompt set dynamically by a function, so in my .bashrc I have: asdf () { echo -n $(pwd) } PS1="\u@\h:\w $(asdf)\$ " Opening a shell gives me what I expect at ...