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

learn more… | top users | synonyms

2
votes
2answers
34 views

gnome-terminal starts with “grep: write error: Broken pipe” message

I am running Ubuntu 14.04.3, it's uptodate. I don't know why, for a few days I began to take grep: write error: Broken pipe message on launching gnome-terminal . It seems to be harmless but it bothers ...
1
vote
2answers
1k views

Problem in .bashrc

I try to edit .bashrc to view the C-compilers that I installed before. But after opening the new terminal I am stuck with strange error. I am unable to ls the files/directories and nothing works. It ...
0
votes
0answers
10 views

Can I use a hexadecimal value rather than ANSI colors in gnome-terminal? [duplicate]

I would like to have specific colors for my PS1 prompt, but those colors do not match my theme. I would like to keep the theme consistent for vim and other programs; however, I would like to change ...
6
votes
4answers
5k views

Add a binary to my path

I have an executable. I want to execute the executable in terminal with name only like other commands. I can put my executable in /usr/local/bin or I could add its PATH to ~/.bashrc. Both will work. ...
0
votes
0answers
36 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 ...
6
votes
3answers
2k views

How to check which terminal emulator is being currently used?

I have gnome-terminal and Guake installed. I want to give different startup messages to be displayed on these terminal emulators as they start. What code should I write in .bashrc so that this is ...
0
votes
1answer
30 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 ...
41
votes
8answers
295k views

Where is .bashrc?

I feel stupid asking, but I can't seem to find the answer to this anywhere. I'm trying to follow these instructions to edit my bash prompt, but there is no .bashrc in either my user directory ...
0
votes
1answer
19 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,
1
vote
2answers
1k 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 ...
1
vote
1answer
25 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 ...
50
votes
4answers
47k views

How can I shorten my command line (bash) prompt?

Currently it is: michael@Castle2012-Ubuntu-laptop01:~/Dropnot/webs/rails_v3/linker/spec/controllers$ Outside of renaming my machine and directory structure... How could I make it be something ...
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
30 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 ...
14
votes
1answer
11k views

Restore .bashrc to its default?

I've been trying to install Android developer tools on Eclipse, and I followed the information in this video: http://www.youtube.com/watch?v=-qk9c-Ug2UI&list=PLQOohAn5nxx43fqFugU6dIwSQNbvXdgi5 . ...
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
59 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
25 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
44 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
76 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
0answers
28 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 ...
1
vote
3answers
6k views
0
votes
2answers
30 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
133 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 ...
2
votes
2answers
105 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 ...
3
votes
1answer
11k views

alias of nodejs as node on 14.04

i installed nodejs with apt-get on 14.04 When i do nodejs -v v0.10.25 and when i do node -v node : command not found. So i want to make alias of nodejs as node So i inserted a line in ...
29
votes
5answers
50k views

Specify JDK for tomcat7

I have installed tomcat7 (using apt-get install) and whenever I want to start tomcat7 it says : * no JDK found - please set JAVA_HOME I have set JAVA_HOME in my bash.bashrc and also in ~/.bashrc ...
3
votes
3answers
6k views

Where I can find the default .bashrc file?

I accidentally overwrote the /etc/bash.bashrc file. Please give me the default content in that file to restore, or the file itself.
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
42 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
168 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 ...
16
votes
5answers
3k views

How (and where) can one change 'user@host $:' pattern in gnome-terminal?

When I start terminal in Ubuntu, I see: ilya@HOST:~$ I need to add a timestamp to this, something like: 2011-10-09T09:32:00 ilya@HOST:~$ How can I configure this?
6
votes
3answers
305 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
40 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 ...
3
votes
1answer
1k views

creating a bash alias name that contains an =

I am trying to set up a ~/.bash_aliases that worked in 12.04 but now bash complains about the = sign. alias emacs = 'emacsclient -c -a --socket-name=server --alternate-editor=' How can I set this ...
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
96 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
154 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 ...
3
votes
1answer
3k views

PATH not working even after successfully modifying it

For some reason I am successful in adding new directories to my $PATH but when I run the commands in the terminal the $PATH doesn't summon them. I modified the $PATH in the ~/.bashrc file, and added ...
1
vote
1answer
133 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": ...
61
votes
4answers
29k views

Bash history search, partial + up-arrow

I have searched, but not found anything on this. I am looking for a functionality in bash, using a terminal. Way back when, I had a user on a debian system, and a friend set me up with a convenient ...
7
votes
1answer
287 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 ...
0
votes
3answers
87 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.