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

learn more… | top users | synonyms

1
vote
1answer
41 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
9 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
51 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
60 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
179 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
787 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
35 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
70 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
344 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
61 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
14 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
35 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
119 views

How to get a colored bash?

How to get the bash colored like this?
3
votes
1answer
76 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
34 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
81 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
21 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
68 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
139 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
17 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
155 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
41 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
154 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
138 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
164 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
65 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
267 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
30 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
163 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
60 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
22 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
192 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
64 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
174 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
68 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
759 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
56 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 ...
1
vote
1answer
36 views

Install bashmark on ubuntu 12.04

I followed the instructions at this page: http://www.huyng.com/projects/bashmarks/ to install bashmark on ubuntu. I have not understood what the guide mean with "add source ~/.local/bin/bashmarks.sh ...
0
votes
1answer
40 views

How to set bashrc shell environment

I would like to add _ENV to my bash so once I ssh to the server it shows something like this: [live][root@server ~]# or [dev][root@server ~]# How can I do this? I have been looking everywhere ...
1
vote
2answers
117 views

After being root, the custom .bashrc file no longer runs?

I modified my .bashrc file to customize my terminal. I modified the else PS1 statement to the one I needed and it works fine but when I login as root it switched back to the one it originally had. How ...
1
vote
0answers
49 views

enabling ccache in ubuntu for android development

http://source.android.com/source/initializing.html#choosing-a-branch following the instruction, I installed ccache and edited .bashrc with export USE_CCACHE=1 but when I start a build, and typed ...
-1
votes
2answers
118 views

how do I enable ccache

I am completely noob at this, i don't know what the make file is, and I don't know what bashrc is. but i do know where to download source code and use source somebash.sh then make file (as was told ...
-1
votes
4answers
144 views

what is bashrc and why do I need to put dot infront of some executable in order to execute it? [closed]

what is bashrc I know files/folders with dot meaning they are hidden, but why do I need to put dot to execute the green files Coming from MS Dos, Linux seems to be very difficult to learn, where can ...
2
votes
1answer
402 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 ...
6
votes
1answer
293 views

Sequence of scripts sourced upon login

I would like to concentrate all my login config in my ~/.bash_profile. There was a ~/.bashrc there by default but I replaced it with a ~/.bash_profile. However, when I log in, something before my ...
3
votes
2answers
2k views

I messed the file bash.bashrc ubuntu 14.04

Trying to install java jre, I messed up the file bash.bashrc on Ubuntu 14.04, by adding these two lines at the end : export PATH= $PATH:usr/java/bin/ ; export JAVA_HOME= ...
0
votes
0answers
27 views

History — workking with bash to delete current session history however not the full history

$ bash <-- entering this command, right before leaving the session have been hit and miss -- sometime deletes the session's commands sometime doesn't I do not have history -a in the .bashrc --- ...
0
votes
2answers
373 views

Adding JAVA_HOME (JDK) in .bashrc

I just installed Ubuntu and am Java 7u55 (JDK) and am trying to configure JAVA_HOME as an environment variable. In ~/.bashrc I added: # Exports JAVA_HOME=/home/myuser/sandbox/java/7u55/jdk1.7.0_55 ...