Questions tagged [bashrc]

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

The .bashrc file is the central location for the configuration of an individual user's terminal login session. The various configuration options for .bashrc allow a user to customize their login session to their preferences. Example customizations include including a list of aliases from a file, making common alias changes for the ls command and grep commands, and even customizing the terminal prompt format for the individual user's preference (for example, changing user@ubuntu$ to [user@ubuntu folder]%).

783 questions
112
votes
4 answers

How do I restore .bashrc to its default?

I've been trying to install Android developer tools on Eclipse, and I followed the information in this video. Like the video said, I added the following two lines of code to the .bashrc file: export PATH=$(PATH):-/android-sdk/tools/ export…
nanananana
  • 1,235
  • 2
  • 10
  • 6
15
votes
2 answers

I think I accidently deleted the PATH variable

Whatever I try to run, I get the error: The command could not be located because '/usr/bin' is not included in the PATH environment variable. I had some modification in my .bashrc file but then removed the two additional lines afterwards. However…
yayu
  • 3,391
14
votes
3 answers

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?
9
votes
6 answers

Where I can find the contents of the default /etc/bash.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.
9
votes
2 answers

'~/.bashrc' vs ' /etc/skel/.bashrc'. Why are there two '.bashrcs'?

Why are there two .bashrcs, ~/.bashrc and /etc/skel/.bashrc? When I compare them, I find no difference.
user833907
8
votes
1 answer

How is ~/bin added to my path?

I have not added ~/bin to any of my .bash* files. However, $PATH does list that directory. The reason I am asking this in the Ubuntu specific StackExchange is because, well, I have exactly the same .bashrc, .bash_profile and .bash_aliases in both…
4
votes
2 answers

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 file and rename my copy to bash.bashrc, or…
Allen Mershon
  • 45
  • 1
  • 6
3
votes
2 answers

$: command not found error

on opening terminal it shows on top $: command not found $: command not found $: command not found yogesh@yogesh-WNB8PHF4710C-0030:~$ and my .bashrc file has # ~/.bashrc: executed by bash(1) for non-login shells. # see…
3
votes
2 answers

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= $JAVA_HOME:usr/java/bin/java/ Now I cannot do any command on terminal. When I…
3
votes
0 answers

Ubuntu got no .bash_login, .bash_profile

I'm new to Ubuntu and currently on it for assignment I need to run source ~/.bashrc at the first start of Ubuntu to enably my alias at the starting of the program. I've checked that I need to modify the .bash_login or .bash_profile but when I…
Unknown
  • 195
  • 3
  • 4
  • 9
3
votes
1 answer

Setting up rbenv properly

I have rvemv installed but every time I close terminal I'm required to execute exec $SHELL for it to reload rvemv otherwise I get an error that rbemv is not installed. How can I fix this so I don't need to execute exec $SHELL? This is also included…
kurupt_89
  • 133
3
votes
1 answer

SUMO_HOME ... the mystery continues

I'm running Ubuntu 17.10.1 and have downloaded sumo 0.32.0 from the Ubuntu respository via Synaptic. Configuration instructions assert that SUMO_HOME should be set in the "base directory" of the installation, adding that this directory contains the…
2
votes
1 answer

Why can't I update .bashrc on Ubuntu 16.04?

My .bashrc file before updating is as below and my Hadoop worked as well: …
hersh
  • 53
2
votes
1 answer

Edit permanently .bashrc

I am a beginner Ubuntu user. I am booting Ubuntu from an USB flash drive and I need to edit the .bashrc file but every time I shut down or restart the computer the edits I made disappear. Is it possibile to make the edit permanently? To be…
2
votes
0 answers

Multiple source lines in .bashrc seem to override each other

I have two packages named pkg1 and pkg2. The pkg1 is part of a workspace labeled abc in /home/csbales while pkg2 is a part of a workspace labeled catkin_ws in /home/csbales. To source them and ROS, which they use, I have added the following three…
CSBales
  • 21
1
2 3