Questions tagged [bashrc]

The Bashrc file is used by the Bourne Again Shell in Unix/Linux to set environment variables and run commands.

It is most often run when logging into a command-line shell or running 'su' to switch to another user. It use to set environment when user logged in.

114 questions
0
votes
1 answer

Where is this bash shell alias being configured?

While logged in as root onto a CentOS 6.5 system, I run ># alias alias cp='cp -i' alias l.='ls -d .* --color=auto' alias ll='ls -l --color=auto' alias ls='ls --color=auto' alias mv='mv -i' alias rm='rm -i' alias which='alias | /usr/bin/which…
Gaia
  • 1,855
  • 5
  • 34
  • 60
0
votes
1 answer

Red Hat 5.4 - Add time to bashrc

I am trying to add the current time to my bash in Redhat. I'd like it to read: [user@hostname 01:01:01 ~] and obviously be relative to when the bash prompt was placed there. Any ideas if this is possible, and if so, how?
Sugitime
  • 415
  • 1
  • 4
  • 12
0
votes
2 answers

.bashrc not loaded, .bash_profile exists

In a ubuntu terminal my .bashrc isn't available until I run: source ~/.bashrc I have a ~/.bash_profile with contents: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* I have a…
rigyt
  • 53
  • 1
  • 5
0
votes
1 answer

Command works independently, but not as SSH callback

A MySQL cloud server only allows remote access to a certain server (in this example, 11.22.33.44). Running the following commands from the terminal is verified to work: ssh -p 40000 user@11.22.33.44 mysql -u dbuser -p -h example.com But when…
Kyle Cureau
  • 1,537
  • 3
  • 11
  • 15
0
votes
1 answer

Built local glibc, broke system, how do I ssh without parsing the .bashrc?

The cluster I am on had really old build tools and I needed to use CUDA5. I'm a pretty clever dude and I planned on building the necissary tools. So, I built a local copy of gcc, bintools, and glibc. Everything a CUDA5 could want. All builds…
Mikhail
  • 204
  • 3
  • 13
0
votes
1 answer

Can't get .bashrc to load

I can't get .bashrc to load on this machine... it's SUZE linux 10. I'm a bit frustrated because this seems very basic, create the file and it loads when you open a new shell connection. With the below setup I'm not seeing my changes take affect...…
Ben
  • 3,800
  • 18
  • 65
  • 96
0
votes
2 answers

Can't succesffully install RVM in Ubuntu 11

I've installed RVM before in Debian and OSX without any problems, but doing it in Ubuntu is driving me crazy. I´ve tried different tutorials, this is the last of them. I think everything goes smoothly until I have to update .bashrc, which doesnt…
ooops
  • 191
  • 1
  • 3
  • 12
0
votes
2 answers

In Linux, how do I umask differently for files and directories?

I wish to have something in my .bashrc that will mask the file permissions as 022 (resulting in new files having permission rwxr--r--) and the directory permissions as 066 (resulting in new directories having permission rwx--x--x). Is this possible?
Cody
  • 1
  • 1
0
votes
2 answers

In Ubuntu, does updating the CLASSPATH require a reboot?

I changed my CLASSPATH and JAVA_HOME variable to something like this JAVA_HOME=/usr/local/jdk1.6.0_24 export CLASSPATH=$CLASSPATH:/usr/local/tomcat/lib export JAVA_HOME And when I try to compile, the path in the CLASSPATH variable still does not…
Genadinik
  • 1,103
  • 4
  • 19
  • 39
0
votes
2 answers

Setting multiple paths to JAVA_HOME in Ubuntu

I am trying to set the JAVA_HOME path in Ubuntu from the .bashrc file I currently have something like export JAVA_HOME=/usr/local/jdk1.6.0_24 But I want to also add the servlet libraries in the Tomcat folder to the path. I tried doing…
Genadinik
  • 1,103
  • 4
  • 19
  • 39
0
votes
2 answers

Copying user account and all settings?

I recently performed a fresh install of Ubuntu 10.04 and tried to create the username that I wanted to create "Sean.Ochoa" (without the quotes), but it wouldn't let me... saying something about the symbols (though the error was cut off due to…
bitcycle
  • 155
  • 1
  • 9
0
votes
1 answer

Is there a "pattern" or a group that defines *rc files in *nix environments?

I'm starting to use command line a little more, and I see there are a lot of ways to configure some config files in my $HOME. This is good, since you can customize it the way you really like. Unfortunately, for begginners, having too many options is…
0
votes
1 answer

Refresh kerberos ticket instead of prompting for pam password

Using centralised auth against FreeIPA is working great. In order to use Kerberos SSO when using ssh, scp etc from jumphosts users must initiate their Kerberos tickets first with kinit. I've added this to bashrc for users so that they're prompted…
dmgeurts
  • 13
  • 4
0
votes
2 answers

Use original linux user bashrc also as root user

I extended the bashrc file of my linux user. This file contains extra aliases, functions, whatever is useful. It's synchronized with a playbook across our 100+ servers. When i'm working on linux I often escale to the sudo user. this is frustrating…
0
votes
1 answer

How to Make the IP Address Appear as Part of Bash Prompt?

Running an Amazon EC2 instance with Ubuntu 22.04. The elastic ip address is 52.120.94.72. I want the bash prompt to read like this (no space) della@52.120.94.72:~/working_directory$ Based on some advice on the net, I edited the top of the…
Della
  • 175
  • 1
  • 1
  • 5