COPY STARTING HERE:

##################################  john's .bashrc  28 Dec 2017 ###################
#  the .bashrc file sets useful user configurations related to:
#  Path, Prompt, Permissions, History, Editor, Alias, Shell options and Functions
#     http://johnmeister.com/linux/bashrc-basic.html
###################################################################################
#  PATH:
##  from /etc/login.defs: ## *REQUIRED*  The default PATH settings, for superuser and normal users.
##  NO NEED TO ADD THE PATHS FOUND in ENV_PATH which are: PATH=/usr/local/bin:/usr/bin:/bin
## ENV_SUPATH    PATH=/sbin:/bin:/usr/sbin:/usr/bin  # 
# FOR BASIC USER:  
export PATH=$PATH:~/bin:~:.
# recommended only for more ADVANCED users:
# export PATH=$PATH:~/bin:/sbin:/usr/sbin:/usr/local/sbin:~:.
#======================================================================================
#  PROMPT:
export PS1="
------------------------------------------------
$(whoami)@`hostname` [\$PWD]
------------------------------------------------
--> "
#======================================================================================
#  PERMISSIONS:
umask 022   
# note:  umask 022 sets new files: 644 & dirs: 755   
#======================================================================================
#  HISTORY:
if [ ! -d ~/.History ]                 
# note:  tests for directory, if not, then...
  then
  mkdir  ~/.History 
  echo "history directory made"
fi   
#======================================================================================
# note: creates a history file for each instance e.g.:  2017_10_Oct_01_1515.history
#======================================================================================
HISTFILE="~/.History/`/bin/date '+%Y_%m_%b_%d_%H:%M'.history`" ; export HISTFILE
HISTSIZE=2048; export HISTSIZE  # default is usually 1024, acceptable
#======================================================================================
# note: on MacOSx, block appendable history:  SHELL_SESSION_HISTORY=0
#======================================================================================
#  EDITOR:
set -o vi       
#======================================================================================
# note:  using set -o vi allows recall of commands via vi commands and inline editing
#======================================================================================
# note: verify location by typing:  which vi  (often systems will link /bin to /usr/bin
#======================================================================================
EDITOR=/usr/bin/vi; export EDITOR    
VISUAL=/usr/bin/vi; export VISUAL
#======================================================================================
# note  optional aliases - use to create simple commands or alternate OS commands
#======================================================================================
#  ALIAS:
alias l="/bin/ls -al" ; alias ll="/bin/ls -l"  # can separate commands with ;
alias lm="/bin/ls -l | more"
alias md="/bin/mkdir -p" #  creates full path
alias mv="/bin/mv -i"    # -i prevents overwriting files, use full path or \ to override
alias cp="/bin/cp -i"    # -i prevents overwriting files, use full path to override
alias rm="rm -i"         # -i prevents overwriting files, use full path to override
alias dfh='/bin/df -h | /usr/bin/grep disk'   # modify to show primary file systems
alias vi="/usr/bin/vim"   # type which vi or which vim, set accordingly
alias mroe=more           # add any other words you mistype often
#=======================================================================================
#   SHELL OPTIONS:
shopt -s histverify  # allows recall historical commands, edit, then use, type: history
shopt -s checkwinsize
#==========================================================================================
#   FUNCTIONS: 
#  creates a directory structure and changes to the lowest level - be aware of keywords
function dir-mkcd () { mkdir -p "$@" && eval cd "\"\$$#\""; }
#==========================================================================================
# ADDITIONAL NOTES - for user configuration
# 1)  setup:    .exrc  (configuratin file for the vi editor - ex is an editor within vi)
#     set tabstop=4 shiftwidth=4 expandtab
#     syntax off
#     set ruler
# -----------------------------------
#   tabstops - determines how many spaces per tab (normal is 5)
#   shiftwidth - determines shift width, on type writers there were tabs, and tabstops, manually set
#   rule - provides digital count of lines and spaces in lower right - very useful!
#   -------
#   norule - (: set norule ) turns off lines, characters and page %
#   number - (: set nu) puts line numbers on left (not included in print or file save)
#   nonumber - (:  set nonu )
# -----------------------------------
# 2) FIVE BASIC COMMANDS:
#     1) man (also:  --help, e.g. man --help ) 
#     2) ls  (also: ls -al and ls -Al) (note: 26 letters, upper and lower case)     
#     3) cd  (type:  which cd  )  (NOTE: this is not a command, but a shell built-in) 
#     4) pwd (print working director) 
#     5) more  (more is recommened, but less is more, both better than cat, because...) 
# -----------------------------------
# 3) configure .ssh if using more than one Linux or MacOSX system 
#    see http://johnmeister.com/linux/Notes/SSH/quick-ssh.html
#    mkdir .ssh ; cd .ssh ; ssh-keygen ; cp id_rsa.pub id_rsa.HOSTNAME 
# -----------------------------------
# 4) some useful commands:
#      1) When copying a file, append the date: cp FILE FILE-`date +'%Y-%m-%b-%d'`  
#      2) Use rsync to completely replace a local directory with that from another system as a backup
#       use trailing "/" to prevent creating a new directory structure, and only use --delete if you want 
#        to remove old files locally.  This is a very dangerous command - useful if you use more than one system
#     rsync -av --delete --progress :/home/luser/somedir/ /home/luser/localdir/
#     e.g.# rsync -av --delete --progress 192.168.11.99:/home/luser/files/ /home/luser/files/
#==========================================================================================

STOP COPYING AT LAST COMMENT ABOVE



additional notes:

# to source, type: . ~/.bashrc or from home dir: . ./.bashrc # adjusted for Win10 BASH - 19 July 2017 - works for all Unix-like shells - check paths #========================================================================================= # setup: Path, Prompt, Permissions, History, Editor, Alias, Shell options and Functions #========================================================================================= # do NOT use ~(tilde) .(period) for root user. To overwrite default PATH, remove $PATH # W10 BASH DEFAULT=($PATH): /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

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)