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

learn more… | top users | synonyms

6
votes
1answer
25 views

How can I preset aliases for all users?

I have Ubuntu 14.04.2. I want to make it so all users automatically have a specific set of aliases. I have my aliases set in my personal .bashrc, but I don't want to have to manually copy them into ...
1
vote
1answer
22 views

Customize Colors for Bash Terminal

I found this nice color library called Solarize which promises to liven up my hacking experience with a color terminal. I am not where to add the Solarize files to change. I found some ...
-1
votes
0answers
45 views

Ubuntu/ Linux mint : where is my .bashrc file [duplicate]

Please help me find bashrc file on my linux mint system. I tried running following command from my home directory: ls -la ~/ | more and I get the following: total 3500 drwxr-xr-x 46 dkumar dkumar ...
0
votes
1answer
29 views

What is meant by “put the file in your path” [duplicate]

I am little confused about an instruction I came across. It stated "put the file in your path". I interpreted that as to add PATH=$PATH:'~/.conkystart' to my ~/.bashrc. The file is ~/.conkystart ...
0
votes
3answers
49 views

Can't access hidden bashrc file

I enter the command '~/.bashrc' and get the message 'Permission denied.' I login into sudo, try it again, and get the same message. What can I do to gain access to this file and edit it?
1
vote
1answer
26 views

New shell terminal points to different bash_profile [closed]

When I launch new terminal it points to some different bash profile. Here in my $PATH are set to default, $JAVA_HOME is blank When I source my .bashrc and and .bash_profile located at home then I am ...
1
vote
1answer
84 views

What does “.bashrc or prepend the Anaconda install location” mean?

I installed Anaconda from root, after completion of installation this message was displayed on terminal screen: Python 2.7.8 :: Continuum Analytics, Inc. creating default environment... installation ...
0
votes
4answers
48 views

Shouldnt .bashrc run every time I log in?

Newish to Ubuntu so forgive if I word things oddly... All I really want to do is have my ls command changed to ls --color=always -ragX Got that solved... Alias will do nicely. Now, to have that run ...
0
votes
2answers
74 views

What is the best practice of customizing the Bash prompt (aka the PS1 environment variable)?

I am trying to add Git branch name to my Bash prompt by changing the PS1 variable like this: PS1=`echo "$PS1" | sed 's/\\\\\$ $/\$(__git_ps1)\\\\\$ /'` And if I understand correctly, it is not ...
0
votes
1answer
42 views

Changing Background Image in Multiple Terminals

I was wondering if anyone would know how to change the background image in the terminal in a unique way. I know how to change it so that every instance of the terminal has the same background, but I ...
0
votes
1answer
31 views

why is “export PATH” displayed in terminal as a title?

I have a long time using Ubuntu, probably 3 or 4 years, I've never had the need to "export a path". Now, I was installing Xilinx ISE 14.7 in Kubuntu 14.04 Trusty Tahr LTS following a tutorial, at ...
2
votes
2answers
132 views

Pipe file to gnome-open command

For example I want to open a specific book from Books directory. To find it I do ls | grep -i 'book_i_want' Ideally I would like to add next pipe with command, like this: ls | grep -i 'some_book' | ...
1
vote
1answer
31 views

Alias for gnome-open to open different files

I want to make alias for gnome-open so I be able to open files with command opn somefile.doc How can I pass filename with this alias?
3
votes
1answer
169 views

How to find a place where a constant is defined in Bash

I need to find at least a file where $JAVA_HOME is defined (exported). Is there any smart way to do that besides text search in files?
1
vote
0answers
49 views

If you install anaconda, how can you inactivate the anaconda environment?

I'm currently using Anaconda to get access to a "standard" set of packages on nearly any platform. The issue is, on the linux side of the house, my current approach is to tell the installer to ...
1
vote
0answers
45 views

Altering command to start application by mouse click - how to

I have Google Earth installed on my Ubuntu 14.04 (Trusty Tahr) and, in order to display clamped polygons on it, I have to start it with the command LIBGL_ALWAYS_SOFTWARE=1 googleearth. I would ...
0
votes
1answer
36 views

Change bash title to show truncated pwd [duplicate]

I use tilda as my terminal on Ubunut 14.10. The trouble I have is that I want to have the tab bar, since the titles in it are actually useful for navigation, but having username@computer:~/some/folder ...
0
votes
0answers
11 views

tlmgr man page not found

I have installed tlmgr and I've added to /etc/.bash.bashrc the following line: MANPATH=/usr/local/texlive/2014/texmf/doc/man:$MANPATH; export MANPATH Then I've done source /etc/bash.bashrc and man ...
1
vote
2answers
111 views

Location of “~/.bash_aliases”

I want to make permanent aliases in Terminal, and I have read this answer on how to do it: http://askubuntu.com/a/5278/364819 But I have got a small problem, I have found the code: if [ -f ...
2
votes
4answers
104 views

Alternative way to run a sudo command on startup

I am trying to write a script for my Ubuntu system to hibernate, whenever the amount of battery left is (say) 5%. This script will run on startup. I can get the battery left using upower -d |grep ...
0
votes
1answer
45 views

Help me remove this Bash error

The bash error below keeps popping up each time I open a new terminal, why is that? How do I fix the bash error below? bash: /home/yonas/.rvm/scripts/rvm: No such file or directory
1
vote
1answer
112 views

Python Pip Permissions

I deleted Python on 14.04, woops! It was 4am and I can't remember why I was doing this. So I re-installed it and all and it works, except for some of that good old virtualenvwrapper. I've searched ...
-2
votes
1answer
102 views

The program 'sed' is currently not installed. You can install it by typing [sed: not found]

I was trying to create my own program in the /usr/local/bin. During the process I messed something up and now anytime I press enter or type anything in the command line, I get this stupid ...
0
votes
2answers
95 views

who calls .bashrc [closed]

On linux mint mate, I have a .bashrc file in my home folder, but I didn't see any of: 1 ~/.bash_profile 2 ~/.bash_login 3 ~/.profile So who calls .bashrc when I open a new terminal window? And, if ...
2
votes
1answer
108 views

Ubuntu / Bash recognising “export PATH=$PATH:~/…” but not “export PATH=$PATH:/home/…”

So I've been using ubuntu since 09.04 but have limited experience with sys admin. I now want to get into web development and as part of installing the Play Framework, I had to add the activator path ...
0
votes
1answer
31 views

How to tell shell to re-read the ~/.bashrc? [duplicate]

How can I tell shell to re-read the ~/.bashrc without restarting the shell?
1
vote
0answers
43 views

.bashrc and fortune/cowsay

I'm using Xubuntu 14.04 with XFCE (of course). I just added a line to ~/.bashrc: fortune | cowsay -f tux And everything is fine, when I open a terminal, cowsay runs with a fortune quote. Except one ...
2
votes
1answer
207 views

Why isn't .profile sourced when opening a terminal?

Just installed Ubuntu 14.04.1 LTS. According to .profile, # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash, if ~/.bash_profile or ~/.bash_login ...
2
votes
0answers
138 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
310 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
58 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
203 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 ...
1
vote
1answer
78 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
18 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
110 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
69 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
89 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
47 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
703 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
91 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
90 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
123 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
126 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
193 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?
14
votes
1answer
2k 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
985 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
82 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
426 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
859 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
75 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 ...