Linux, UNIX or MacOS -SIMPLE- .bashrc:


# .bashrc
#########################################################
###  .bashrc file - updated 10 june 2016
#########################################################
export PS1="
------------------------------------------------
$(whoami)@`hostname` [\$PWD]
------------------------------------------------
--> "
#########################################################
#   alternate PS1 using only 2 lines:
#         export PS1='\u@\h [\w]\n--> '
#########################################################
if [ ! -d /home/$(whoami)/.History ]
        then
            /usr/bin/mkdir /home/$(whoami)/.History
            /usr/bin/echo "history directory made"
        fi
###########################################
export HISTFILE="/home/$(whoami)/.History/`/bin/date '+%d%b%y_%H%M'.history`" 
export HISTSIZE=1024 
###########################################
shopt -s histverify   #   enables recall of history line with !number for edit
###########################################
export EDITOR=/usr/bin/vi; export VISUAL=/usr/bin/vi  # very important - LEARN vi!
###########################################
set -o vi   #  allows the use of the vi editor on the command line
###########################################
PATH="$PATH:/home/$(whoami)/bin:/usr/sbin:/sbin"
###########################################
alias ll="/usr/bin/ls -Al"
alias mv="/usr/bin/mv -i"		# recommended as a safety net, there are no undo's in Linux
alias cp="/usr/bin/cp -i"		# recommended as a safety net, there are no undo's in Linux
alias rm="/usr/bin/rm -i"		# recommended as a safety net, there are no undo's in Linux
alias dfh='df -h | grep -v tmpfs | grep -v none | grep -v udev'  # varies based on distro and whether systemd or initd
alias mroe=more		        # just in case you type too fast... add others like this
##########################################
#NOTES:  check paths of commands using "which", e.g. which hostname;
#    If .bashrc fails to source, make .profile with:  . ./.bashrc 
##########
# for Solaris 10, replace: $(whoami) with:  `/usr/ucb/whoami`
##########
#  john - 23 sep 2015  http://johnmeister.com/linux/Notes/bashrc-simple.html
#  john - 16 may 2016 updated to use $(whoami) to define /home/(user)/.History 
#  john - 10 jun 2016 added shopt -s histverify to permit "!number" from history for edit using vi
##########



Simply Linux: Basics Linux Tackles Microsoft Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
 Full Size Jeep Buyer's Guide
12 hour Video Course by john:
The Art of Linux System Administration
published by O'Reilly Media
Study Guide for the LPIC-2 Certification Exams
search for:
on the internet, or:
JohnMeister.com-fotos
LinuxMeister-Linux
BibleTech- Bible overview

overview of mankind's history
Biblical history:
"Promises and Prophets"

Wagoneers

FULL SIZE JEEPS

JeepMeister
"Jeep is America's
only real sports car."
-Enzo Ferrari


MeisterTech
Diesels +

One Page Overview of Linux Commands

click for an image of the 5 essential Linux commands

An Intro to Linux
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983
purchase AMSOIL
at Midway Auto on SR9 in Snohomish,
or at Northland Diesel in Bellingham, WA


SJ - 1962-1991

XJ - 1984-2001

WJ - 1999-2004

KJ - 2002-2007

WK - 2005-2010

Find the recommended
AMSOIL synthetics
for your Jeep

CJ-10A - 1984-1986

Jeepsters

MJ - 1984-1992

Willys - 1946-1965

Other Jeeps (FC)