The cloud above uses Docker to build a CentOS instance, the first free, just when the cloud host to play.
However, there is a problem with opening the command line that does not display the current user and path .
Show only:
-bash-4.1#
Simple, the configuration file is not complete.
To reset it, you need to set two files: ~/.BASHRC and ~/.bash_profile BASHRC
Create a new. bashrc file under the current directory:
# Touch ~/.BASHRC
and enter the following data
#. BASHRC
# Source Global Definitions
if [-F/ETC/BASHRC]; then
./etc/bashrc
fi
# User specific Ali ASEs and Functions
Source below makes it effective:
# source ~/.BASHRC Bash_profile
Create a new. bash_profile file under the current directory:
# Touch ~/.bash_profile
and enter the following data
#. Bash_profile
# Get the aliases and functions
if [-f ~/.BASHRC]; then
. ~/.BASHRC
Source below makes it effective:
# source ~/.bash_profile
You can see that the current user and path have been successfully displayed.
If you are lazy to write yourself, you can directly wget my files:
HTTP://HOWIE.WANG/.BASHRC
Http://howie.wang/.bash_profile