The bash man page says:
"When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, "
I can see that bash.bashrc is executed because I put echo in it, but .bashrc is not.
We've had a bit of a problem here, and I'm trying to figure out what might have gone wrong.
The company I work for maintains a set of remote servers for one of our major clients. Yesterday, one of the remote sites (running SuSE 11.0) had their UPS backup system fail, and the server went down. After they tried to bring it back up, we could ping it, but not shell in via putty.
I have 12.04 server minimal running on my VPS. When I ssh into the server, only $ is showing at the prompt for each prompt. There's no typical <directory> <username>$, no autocompletion (bash-completion is installed), and no use of arrow key, etc.
Is the a way to specify a multi line prompt in Korn shell?
I am planning to swhitch from bash to ksh. In bash I have a very simplistic prompt, but it is 2 line prompt. I hate when input position changes depending on directory depth. My PS1 in bash is:
PS1='$(echo $?): \w\n>> '
Which results in prompt like:
0: /var/log
>> _
I have a script, which I can not put on a remote server. However, I would like to run it on the remote server using ssh. What I have been doing recently is ssh -t host <<-EOF
command1;
command2;
...
/bin/bash -i
EOFIt runs the commands correctly, but does not give me the bash prompt.I can do ssh -t host "command1; command2; bash"The only issue, is that the comma
Hi,For whatever reason, my CentOS install simply displays the bash version (4.1) as the command prompt [Bash 4.1$]I'd like it to display user@host
I added this command to my root .bashrc file to add color to my prompt
and to simplify its path portion to the lowest level directory,
Code:
export PS1="\e[1;31m\u@\h:\W\$\e[m "
and my bash prompt comes up ending with $ when I expected #.
Also, occasionally, when I enter a command, part of that command
becomes part of my prompt!
If the following is a prompt and command,
Code:
In the next couple lessons here at Nocturnal Slacker v1.0 we'll be discussing the Bourne Again Shell (BASH) in a bit more detail.With that in mind, though, how 'bout we play around with a neat trick that will customize your BASH prompt whenever you go to the command line? Sound like fun? OK, here we go...There's a file in your /home/<your_username> directory called .bashrc.
I have the following bash script
#!/bin/bash
ssh -o "StrictHostKeyChecking no" ubuntu@$1
cd /home/ubuntu
wget google.com
When I run it, ./test.sh I am ssh'd into the remote server but the wget command is not run unless I press ctrl+d and then the ssh session exits and the index.html file is saved to /home/ubuntu
How can I change this bash script so that I can save the index.html file on the re