Skip to content

Instantly share code, notes, and snippets.

/bashrc profile Secret

Created April 1, 2012 11:25
bashrc profile differences
Contenst of /root/.profile of DocScrutinizer
# ~/.profile: executed by Bourne-compatible login shells.
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
#if [ -f ~/.bashrc -a -n "$BASH" ]; then
# . ~/.bashrc
#fi
Contents of /root/.profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
mesg n
Commented out bashrc reading : Contents of /root/.profile
# ~/.profile: executed by Bourne-compatible login shells.
#if [ -f ~/.bashrc ]; then
# . ~/.bashrc
#fi
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
mesg n
Contents of /root/.bashrc by DocScrutinizer
# ~/.bashrc: executed by bash(1) for interactive shells.
#PATH=/usr/bin/gnu:$PATH
PATH=$(echo $PATH|sed "s.:/usr/bin:.:/usr/bin/gnu:/usr/bin:.;s.:/usr/sbin:.:/usr/sbin/gnu:/usr/sbin:.")
export PATH
Contents of /root/.bashrc default
# ~/.bashrc: executed by bash(1) for interactive shells.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment