| Server IP : 104.21.13.164 / Your IP : 216.73.216.72 Web Server : Apache System : Linux gator4057.hostgator.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64 User : badawi ( 1130) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/etc/ |
Upload File : |
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# For some unknown reason bash refuses to inherit
# PS1 in some circumstances that I can't figure out.
# Putting PS1 here ensures that it gets loaded every time.
alias which="type -path"
export EDITOR="pico"
export VISUAL="pico"
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\[\e[1;31m\]\h \[\e[0;0m\]\w]\\$ "
whoami=`whoami`
if [ -e "~/.dns" ]; then
DNS=`cat ~/.dns`
PS1="\u@$DNS [\w]# "
else
if [ -e "/var/cpanel/users/$whoami" ]; then
eval `grep DNS= /var/cpanel/users/$whoami`
if [ ! "$DNS" = "" ]; then
echo -n "$DNS" > ~/.dns
PS1="\u@$DNS [\w]# "
fi
fi
fi
if [ ! -e ~/public_html/cgi-bin ]; then
mkdir -p ~/public_html/cgi-bin
fi
if [ ! -e ~/public_ftp ]; then
mkdir -p ~/public_ftp
fi
alias wtf="watch -n 1 w -hs"
alias wth="ps -uxa | more"
# Now for the dos users
alias dir="ls"
alias copy="cp"
alias del="rm"
alias deltree="rm -r"
alias move="mv"
alias ff="whereis"
alias attrib="chmod"
alias edit="pico"
alias chdir="cd"
alias mem="top"
alias search="grep"
alias pico="pico -w -z"
LS_OPTIONS='--color=tty -F -a -b -T 0';
export LS_OPTIONS;
alias ls='/bin/ls $LS_OPTIONS';
alias dir='/bin/ls $LS_OPTIONS --format=vertical';
alias vdir='/bin/ls $LS_OPTIONS --format=long';
alias d=dir;
alias v=vdir;
eval `dircolors -b`
export JAVA_HOME=/usr/local/jdk
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"
alias grep='grep --color'
HISTTIMEFORMAT="%c : "
shopt -s histappend
export PROMPT_COMMAND='history -a'
#cPanel Added local::lib -- BEGIN
LOCALLIBUSER=$USER
if [ -e "/usr/bin/whoami" ]; then
LOCALLIBUSER=`/usr/bin/whoami`
fi
if [ "$LOCALLIBUSER" != "root" ]; then
eval $(perl -Mlocal::lib)
fi
#cPanel Added local::lib -- END