FAQ Categories

Ask A Question

Question to be answered.
Longer question text.

WWW Resources

Hosted by WestHost

Where do I upload .bashrc in WH 4.0?

The answer is you don't. In WH 4.0 if you want to define user aliases and functions then you need to put them in a file called .profile located at /home/[username]/.

One example of this would be changing the default prompt in the shell environment which looks something like this -Bash 3.2-$. Put this code in the file /home/[username]/.profile:

Code:
PS1="[\u@\h \W]\$ "

The above code would make it looks something like this [username@host ~]$. username and host well be unique to your account.

Another thing you may want is to add to $PATH. You could do that with the following code.

Code:
export PATH="$PATH:/home/[username]/bin"


Our old 3.0 accounts had some aliases set up. Not all would work in the 4.0 environment but here are some that should.

Code:
alias du="du -h"
alias mv="mv -i"
alias cp="cp -i"
alias rm="rm -i"
alias l="ls -l"
alias vi="vim"
alias more="less"
alias psx="ps aux"
Powered by Drupal, an open source content management system