# Greeting echo -e "\n\e[1;31mWelcome master. You are logged on \e[0m\n" uname -a echo "" date echo "" # User specific aliases and functions # PS1="[\u@\h:\W, \@, \d]> " #custom prompt options # PS1="[\[\033[32m\]\w]\[\033[0m\]\n\[\033[1;36m\]\u\[\033[1;33m\]-> \[\033[0m\]" PS1="02:\w> " alias dir='ls -Flg | more' alias h='history' alias cp='cp -i' # don't overwrite existing files without ok alias mv='mv -i' # don't overwrite existing files without ok alias rm='rm -i' # don't overwrite existing files without ok alias ls='ls --color=auto -F' alias ll='ls -l' prompt='%B<%m:%3.>%b$ ' function lc () { cd $1; ls } # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi function cd { builtin cd "$@" && ls -F } # To set up the Oracle environment for SQL*Plus export ORACLE_HOME=/usr/lib/oracle/23/client64 export LD_LIBRARY_PATH=${ORACLE_HOME}/lib export PATH=${ORACLE_HOME}/bin:$PATH export CLASSPATH # To set up the Oracle environment for your shell account CLASSPATH=.:/usr/lib/oracle/23/client64 CLASSPATH=$CLASSPATH:/usr/lib/oracle/23/client64/lib/ojdbc8.jar CLASSPATH=$CLASSPATH:/usr/lib/oracle/23/client64/lib/ottclasses.zip export CLASSPATH # /bin/bash # The bash executable # /etc/profile # The systemwide initialization file, executed for login shells # ~/.bash_profile # The personal initialization file, executed for login shells # ~/.bashrc # The individual per-interactive-shell startup file # ~/.bash_logout # The individual login shell cleanup file, executed when a login shell exits # ~/.inputrc # Individual readline initialization file # # Login shells are the ones that are read one you login. # (so, they are not executed when merely starting up xterm, for example).