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

learn more… | top users | synonyms

1
vote
1answer
16 views

Bash reverse-i-search wrong prompt output

After modifying my .bashrc to add color to prompt, reverse-i-search output formatting is messed up. Typing CTRL+R to start a new search, prompt output is OK: After pressing right arrow to modify ...
0
votes
1answer
85 views

-bash: export: not a valid identifier

Whenever opening the terminal, I always end up with this same error. -bash: export: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/...
2
votes
0answers
35 views

bash.bashrc damaged..ubuntu log in loop and no interactive programs working from terminal

I have accidentally deleted the content of /etc/bash.bashrc and now I cannot log in as it gives me a loop and I cannot run any interactive programs from the terminal. When I try, I get this error: ...
2
votes
1answer
73 views

Terminal closes immediately after opening. (After upgrade to Ubuntu 16.04 LTS)

I upgraded my ubuntu from 14.04 LTS to 16.04 LTS after that whenever I open gnome-terminal with Ctrl+Alt+T or xterm or uxterm it closes immediately. I tried all the solutions on Terminal immediately ...
0
votes
1answer
49 views

The ~/.bashrc file is missing after reboot

In Ubuntu 14.04 each time I reboot, the bashrc file is missing in the ~/. location. What happened? Please give me some suggestions! Thanks! Update: Add new ~/.bashrc, then ls -l ~/.bashrc get the ...
0
votes
1answer
45 views

I'm getting this whenever I open terminal

How do I fix it :/ declare -x CLUTTER_IM_MODULE="xim" declare -x CMAKE_PREFIX_PATH="/home/ahmed/catkin_ws/devel:/opt/ros/indigo" declare -x COLORTERM="gnome-terminal" declare -x ...
0
votes
0answers
19 views

Does Ubuntu handle 'bash_profile' differently from OS X in subshells? [duplicate]

On my OS X system, when I use a subshell (for example with screen), the settings in my .bash_profile are inherited, but on Ubuntu, they are not, and in order to get the same behavior I have on OS X I ...
0
votes
1answer
29 views

Installing Ruby On Rails shows errors on line 168 [closed]

I am trying to install ruby on rails on my me elementary OS 0.3.2 Freya. and now i am seeing the following errors on my terminal. even if when i restart the terminal the errors shows on the first ...
3
votes
1answer
57 views

Avoid terminal characters from previous terminal commands

Well, I think you know pretty well what I'm talking about; if not, check this video. Basically, when you press your up array to obtain the previous command, often the characters are left on the ...
0
votes
1answer
68 views

How to automatically `sudo mount`?

I have a couple of shared directories on my NAS server that I want to automatically mount. Currently I have tried putting them in my .bashrc file but this means every time I open a terminal it will ...
5
votes
1answer
68 views

need help creating an if statment that will work for my purpose in .bashrc

I have edited my .bashrc to look like this with some help from others on this forum ... Thanks guys for the help on the weather segment of this script... An issue I have ran into is the code for the ...
0
votes
3answers
96 views

How can I run a shell script from bashrc file?

What I basically want to achieve is to type in a custom command in the terminal and a specific shell script should run each time. I could achieve the above requirement with folders,by modifying the ...
1
vote
1answer
22 views

What is the difference between --init-file and --rcfile?

I've been working with bash, and I came across the --rcfile and --init-file options. Bash's man page lists these under the same section, but they seem to behave differently. Take the following ...
0
votes
1answer
21 views

PATH variable in different terminal windows

I note that if I have several terminal windows opened and in one of them I set path variable through bashrc: export APP_PATH="path_to_app" export PATH="$APP_PATH:$PATH" Then call: source ~/....
0
votes
0answers
44 views

Change ls colors only in home directory not in mounted disk

I try change color of Dir in ls so i add this into my .bashrc: alias ls='ls --color=auto LS_COLORS=$LS_COLORS:'di=1;33:' export LS_COLORS and it works. But when i'm in my mounted disk it does not ...
0
votes
1answer
82 views

My permanent alias isn't working [duplicate]

Sorry I am new to ubuntu, just installed it. The version Ubuntu 14.04.4 LTS. I finally learned how to install a program called WebStorm and trying to create an alias for it. I tried creating it ...
0
votes
1answer
64 views

Help me understand .profile, .bashrc, etc [duplicate]

My current understanding is that commands added to these two files are run every time a new terminal is open. Is that correct? Because in a lot of places I see suggestions to put there commands I want ...
0
votes
0answers
40 views

Bash autocompletion

.bashrc is sourcing : . /usr/share/bash-completion/bash_completion which has _completion_loader() function for loading: /usr/share/bash-completion/completions folder but its not working in 15.10 ...
3
votes
3answers
110 views

Can't use terminal any more after editing bashrc file

Last time when I added JAVA_HOME="/usr/lib/jvm/open-jdk" (java path could be different) source /etc/environment (and this too ) at the end of bashrc file. when i saved and exited, Terminal keeps ...
3
votes
2answers
893 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 ...
0
votes
0answers
12 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 ...
0
votes
0answers
53 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
67 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
37 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
36 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?
2
votes
1answer
74 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
18 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
132 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 gnome-...
0
votes
1answer
60 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
58 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
21 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
52 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
64 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 PS1='${...
1
vote
1answer
206 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
61 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
491 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
51 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 M5_PATH=/home/...
2
votes
2answers
212 views

Where is my PATH variable being set?

I'm trying to set my path variable to look like this: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/jgrande/android-sdk-linux/platform-tools:/usr/lib/...
5
votes
1answer
245 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
24 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
37 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
57 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: slazer@ubuntu:~/Desktop/xpalenik_pb161/hw03/...
4
votes
2answers
354 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 ...
7
votes
3answers
323 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 command?...
1
vote
0answers
57 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
55 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
557 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
318 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
296 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": http://pastebin.com/...