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

learn more… | top users | synonyms

2
votes
0answers
57 views

How to change my home directory?

I have a current /home/user/ directory for ~ but I want to change it to be at /user/home/ /user/home already exists. The option of using usermod is not going to work because I don't have access to ...
0
votes
1answer
40 views

Problem setting alias, ~/.bash_aliases file not found [duplicate]

I was trying to setup a permanent alias. but ~/.bash_aliases file not found on my system. I have checked the bashrc file and it shows bash_aliases are enabled. I tried creating a new file in the same ...
0
votes
3answers
37 views

$PATH not saved as I login again [duplicate]

When I make a change in my ~/.bash_profile file and I add such a variable as: export PATH="$PATH:$HOME/.composer/vendor/bin" And after save and close, I need to reflect these changes in my $PATH ...
0
votes
1answer
46 views

Terminal error (some typo somewhere?) with .bashrc disables all aliases etc

I can't use any of my aliases or custom defined variables in bash. The error when I open the terminal is immediately: : command not found bash: /home/khaverim7/.bashrc: line 6: syntax error near ...
0
votes
1answer
28 views

show limited git diff status in ls, only in git directories

This might be an odd problem, but I would like to override the behavior of ls when in a git directory. I want to extract some diff statistics from the last commit, and append it to the bottom of the ...
1
vote
0answers
16 views

What is the difference between pre- and post- pathing

I was trying to add some directory to my path today. So far I used to do it using export PATH=/home/username/.../.../bin, then a colleague suggested adding :$PATH in the end of the line. I read some ...
0
votes
1answer
47 views

Bash Files - /etc/profile vs ~/.bash_profile file [duplicate]

Does anyone know what the difference between the /etc/profile and the ~/.bash_profile file is? Which one is executed first?
0
votes
0answers
29 views

.desktop file with .bashrc environment

I am using IntelliJ IDEA, and it uses some of the environment variables defined in the .bashrc script. If I run its shell script from the terminal everything works fine but if I create a .desktop ...
3
votes
1answer
59 views

How to make the terminal autocomplete based on previously entered commands? [duplicate]

It's normal when using terminals that pressing up and down cycles through previous commands entered chronologically. I learned from a site how to add to that behaviour by autocompleting what I'm ...
2
votes
1answer
39 views

Customising terminal environment

I want to customise the command prompt. I've added: PS1='\[\e[1;30m\][\[\e[1;34m\]\u@\h \[\e[0;36m\]\A\[\e[1;30m\]]\[\e[1;37m\]~\W\[\e[0;37m\] \$ \e[0;100m' to ~/.bashrc. It is all good except ...
6
votes
2answers
136 views

What is a .bashrc file and what does it do?

I can't seem to find any clear information on what the .bashrc file is and what it does exactly. Thanks for all the help so far. It seems that this script does everything from coloring, ...
1
vote
1answer
58 views

Starting program via terminal and putting it immidiatly in the bg / bashrc

So i am trying to start a Programm by using the terminal but i also dont want it to be locked to the said terminal. i added an alias inside the bashrc for easy startup: alias tksuite='sudo sh ...
0
votes
1answer
39 views

Running Questasim in Ubuntu

I tried to install Questasim 10.2 in Ubuntu 14.4 32 bit.Everything was ok.But when I tried to run the Questasim it is showing an error bash: ./vsim: cannot execute binary file: Exec format error ...
1
vote
2answers
66 views

gibberish command not found on bash terminal startup

I have run across an issue that I just cannot seem to figure out. When I start my terminal in ubuntu (14.04) I get the message sdfsdfsdi: command not found As you can see it just looks like ...
2
votes
2answers
72 views

Problem in creating alias, get strange messages

[Reviewers: note that the question was completely rewritten after the close votes.] I recently found how I can define aliases for bash in the ~/.bashrc. But since I tried that, I see the followig ...
-1
votes
3answers
188 views

What does ';;' mean?

What does the meaning of ;; in this code from ~/bashrc file? case $- in *i*) ;; *) return;; esac Can I use ;; in other ways? and where?
12
votes
1answer
1k views

How to display random jokes from www.icndb.com in your terminal?

I already know that you can get some nice quotes/jokes using the fortune program. But I've found in this urwird script a new source of fun that I'd like to have when I open a new terminal. This time ...
4
votes
3answers
848 views

write function in one line into ~/.bashrc

Why when I try to wite a function just in one line into .bashrc file, list(){ ls -a } I get error? bash: /home/kasiya/.bashrc: line num: syntax error: unexpected end of file but when I write it ...
0
votes
1answer
56 views

what is meant by bash: export: `/home/jntuacep/venky/ns-allinone-2.35/lib': not a valid identifier

my .bashrc file contains: # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running ...
0
votes
2answers
159 views

Bash error on opening the terminal

Whenever I open terminal in Ubuntu I get the following bash and I don't know how to solve it. I need a solution as soon as possible: bash: ...
1
vote
2answers
476 views

Why isn't one 'bash' command working at startup

I am working on a VM with Lubuntu 14.04, I have created a script a.sh, #!bin/bash echo "aaaa" >> a.txt And my /etc/rc.local file is as follows: #!/bin/sh -e # # rc.local # # This script is ...
1
vote
1answer
67 views

Question about something appearing in my Terminal

After I moved from Windows to Ubuntu I liked to try out every new app I found so I decided to install Betty (a Siri like alternative for Ubuntu). I used the PPA given by Webupd8 site and the last ...
0
votes
0answers
16 views

Problem during the usage of up and down keys for checking up and down arrows

I am facing an issue during the usage of up and down on gnome-terminal. Lets say my previous commands are vi pos_of_rightmost_setbit.cpp gcc -o harsha pos_of_rightmost_setbit.cpp At this point ...
0
votes
1answer
42 views

accidently overwritten the ~/.bashrc file

while testing some commands I cleared the content of the ~/.bashrc file and i don't have a backup from it is it enough to copy from /etc/skel/.bashrc to login normally the next time or i may face ...
1
vote
2answers
463 views

How to get a colored bash?

How to get the bash colored like this?
3
votes
1answer
87 views

Is there a way to mirror directory changes in Terminator?

I'm on Ubuntu 12.04 and am using Terminator as my primary terminal. I like it because it lets me keep a python interpreter and bash terminal open at the same time, in the same view. What is annoying ...
1
vote
1answer
48 views

display only the git root directory if it is a git directory in PS1

I know you can do something like this for the PS1: Corvid @ ~/github/gitdirectory (master) $ but, this might be a bit odd: I want to only show the basename of the git directory, no matter where I ...
2
votes
2answers
114 views

installing a script in $PATH

I am trying to use yeoman in Ubuntu. Everything is installed correctly but I can't use the command yo from bash. If I navigate to the appropriate directory and run node cli.js everything works from ...
0
votes
2answers
27 views

javapath is not showing

I installed Java, but I don't get the Java path when I am typing echo $JAVA_HOME, and also I am getting the following error message when I open a terminal bash: /home/ramesh/.bashrc: line 128: syntax ...
0
votes
1answer
204 views

What causes “bash: /bin: Is a directory” every time a terminal is opened? [closed]

This is initial screen I am getting on Ubuntu 12.04, when I open a terminal (Ctrl+Alt+T): That is, the text on the terminal is: bash: /bin: Is a directory chase@chase-desktop:~$ gedit ~/.bashrc ...
4
votes
2answers
167 views

Shell gives no prompt if auto completion is enabled (blinking cursor instead)

I tryed to enable shell autocompletion uncommenting the following lines in my .bashrc: # enable programmable completion features (you don't need to enable # this, if it's already enabled in ...
0
votes
0answers
21 views

How can I `turn on and off` the functionality for dmesg?

I have used dmesg -c to clean the history but as I go to /var/log/. I found the file dmesg and the records in it remain. It's terrible. The wifi connection information is massive and bothering. I ...
5
votes
2answers
197 views

How to easily make an alias command permanent? [duplicate]

I search everywhere and almost everyone was suggesting to open the ~/.bashrc or ~/.bash_aliases, then put the alias command there, I created a function name palias as permanent alias function and put ...
0
votes
2answers
62 views

How to bring “.bashrc” in effect without logging out or Restarting the current session?

I am basically using .bashrc for adding environment variables. Each time I add a new Environment variable, I have to log out the current session and log in again to bring the changes in effect. Is ...
4
votes
1answer
339 views

Open terminal in current directory with tmux

I have a simple .bashrc file at the moment that allows me to always open the same terminal (reopen, actually) running tmux. The important part is shown below. The essence of this is that when you ...
0
votes
1answer
417 views

Permanent PATH variable

How will I make this /media/De Soft/mongodb/bin PATH variable permanent? Everyone is saying export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your ...
1
vote
1answer
268 views

bash: install_path: No such file or directory

When I open a new terminal I get : bash: install_path: No such file or directory My .bashrc file conatins the following code : # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls ...
9
votes
2answers
1k views

What does the first '.' mean in '. ~/.bashrc'? [duplicate]

I saw a post about fix your alias in .bashrc. And he says after you put your alias in .bashrc , you need to use: . ~/.bashrc I do not quite understand what the first dot(' . ') does here. What's ...
2
votes
2answers
75 views

Bash Function Oblivion [duplicate]

I'm fairly new to Linux, as many of you may have noticed. What I speak particularly is adding personal, user-generated functions and alias in my .bashrc file. I'm not exactly sure how bash works but ...
3
votes
2answers
335 views

.bashrc shebang line reports command not found

Tried the following shebang lines: $ head -n2 .bashrc | od -c 0000000 357 273 277 # ! / b i n / b a s h \n $ bash bash: #!/bin/bash: No such file or directory .bashrc starts ...
0
votes
1answer
40 views

Grails different versions in ubuntu

I am using grails 2.4.0 for my recent grails application. Now I have cloned a grails-app which is developed in grails 2.0.4. My grails path is pointing to 2.4.0, so that I just upgraded the 2.0.4 ...
0
votes
0answers
305 views

After exporting $PATH, commands don't work anymore

Trying installing Java, I tried to add it to the executable path with the line: export PATH=/usr/lib/jvm/jdk1.7.0_60/bin:$PATH in the system-wide /etc/bash.bashrc file. For some reason this ...
0
votes
0answers
102 views

Alias's in .bash* not working

I am trying to create an alias and it does not seem to be working. I have tried it with both .bashrc and .bash_aliases. If I open my terminal and perform source .bashrc, then they work OK. What am I ...
1
vote
0answers
25 views

Weird problem: can not connect network until a terminal is opened in Live system

Live system based on ubuntu server 12.04.2 with manual installed X and openbox. startx is in a shell script which is called in /etc/rc.local with su -l root -c /scriptsFolder/script.sh A program is ...
0
votes
1answer
212 views

TangoWithDjango .bashrc edit causing errors

I'm currently doing the Tango with Django module and I've edited my .bashrc as it lists. Appending [[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc to the end ...
2
votes
1answer
73 views

Need to exec $SHELL on new terminal for settings to work

Unsure what is interfering with my shell, on every new shell I need to exec $SHELL to get correct settings to take. I am getting this prompt by default sayth@sayth-TravelMate-5740G:~$ and after ...
0
votes
1answer
343 views

Command not found for alias

I recently installed the apache2 package using the Software Centre, I want to create an alias apacheres which will replace the more cumbersome command /etc/init.d/apache2 restart. I opened the ...
-1
votes
2answers
82 views

Why doesn't the command finish

I have added this to .bashrc alias a='ap update && ap dist-upgrade -y && do-release-upgrade -d && ap check && ap autoremove -y && ap autoclean' So i can run ...
0
votes
1answer
2k 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 ...
0
votes
0answers
85 views

How can I see environment variables defined in .profile after lauching sudo codeblocks?

I am developing code with C++ in code::blocks. Because my code needs to access mice devices I launch code::blocks with sudo as superuser in an xterm I opened first. In the code I would like to read ...