Environment¶
The configuration of the bash
shell environment is stored in the /usr/home/LOGIN/.bash_profile
file. To use the following examples, add them to the above file.
Encoding¶
The default encoding is UTF-8
and it is recommended to use it.
To change the encoding to, for example, ISO-8859-1
, add:
export LC_ALL="en_US.ISO8859-1"
Editor¶
The default editor is vi
. For novice users, it may seem unintuitive. The following editors are installed on Serv00.com servers: nano
, vim
, ee
or mcedit
. To change the default editor to nano
add:
export EDITOR="nano"
Coloring ls¶
By default on Serv00.com servers, ls
colors filenames using the BSD
default colors. To change the color of the output to that of GNU
add:
export LSCOLORS="ExGxFxdxCxDxDxhbadExEx"
You can also disable the display of colors altogether by adding the following line:
unset CLICOLOR
Prompt¶
To change the default prompt to Linux, add:
export PS1="\u@\h:\w\\$ "