CentOS Shell Environment einrichten

Aus Howtos und Gedankenstuetzen

Wechseln zu: Navigation, Suche

Man lege in /root eine Datei namens .bashrc mit folgendem Inhalt an:

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
 
# User specific aliases and functions
alias l='ls -la'
alias ..='cd ..'
alias ...='cd ../..'
set -o vi

Weiters kommt eine Datei names .bash_profile mit folgendem Inhalt nach /root:

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH