-----------------------------------
  building a base for BASH 
-----------------------------------
1) Establish Baseline - config files

 a)    .bashrc 

    Path, Prompt, Permissions, History, Editor, Alias, Shell options and Functions

COPY FILE FROM:     http://johnmeister.com/linux/bashrc-basic.html

##################################################################################
export PS1="
------------------------------------------------
$(whoami)@`hostname` [\$PWD]
------------------------------------------------
--> "
#======================================================================================
umask 022   #    umask 022 sets new files: 644 & dirs: 755   
#======================================================================================
#  NOTE - careful the "tilde" (~) may not copy over correctly - use the full path
#======================================================================================
if [ ! -d ~/.History ]                 # tests for directory, if not, then...
  then
  mkdir  ~/.History 
  echo "history directory made"
fi   
#   sets up history file for each instance e.g.:  2017_10_Oct_01_1515.history
HISTFILE="~/.History/`date '+%Y_%m_%b_%d_%H:%M'.history`" ; export HISTFILE
HISTSIZE=2048; export HISTSIZE  # default is usually 1024, acceptable
# on MacOSx, block appendable history:  SHELL_SESSION_HISTORY=0
#======================================================================================
EDITOR=vi; export EDITOR   # verify location if necessary by typing:  which vi
VISUAL=vi; export VISUAL
set -o vi           #  allows recall of commands via vi commands and inline editing
#======================================================================================
#   optional aliases - use to create simple commands or alternate OS commands
alias l="ls -al" ; alias ll="ls -l"  # can separate commands with ;
alias lm="ls -l | more"
alias md="mkdir -p" #  creates full path
alias mv="mv -i"    # -i prevents overwriting files, use full path or \ to override
alias cp="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='df -h | grep disk'   # modify to show primary file systems
alias vi="vim"   # type which vi or which vim, set accordingly (VIM not on all systems!)
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
#==========================================================================================
#  creates a directory structure and changes to the lowest level - be aware of keywords
function dir-mkcd () { mkdir -p "$@" && eval cd "\"\$$#\""; }
#==========================================================================================

 b)    .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...) 

http://johnmeister.com/linux/Intro-to-Linux/the-5-basic-commands.jpg
3) EXERCISE: http://johnmeister.com/linux/Intro-to-Linux/lab-exercise-1.html

JohnMeister.com Today's Date:

Simply Linux: Basics  Full Size Jeep Buyer's Guide Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
Linux Tackles Microsoft
Video Course:
The Art of Linux System Administration, and a
Study Guide for the LPIC-2 Certification Exams.

-- O'Reilly Media author info
FULL SIZE JEEP

Buyer's Guide

SJ model Jeeps
"Jeep is America's
only real sports car."
-Enzo Ferrari


Mercedes, VW, and other Diesels
Nikon cameras
general tech info
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983

purchase AMSOIL and have it
installed locally in WA at:

- Fleet Services 425.355.4440 - Everett
- Midway Auto 360.668.7111 - Clearview/Snohomish
- Northland Diesel 360.676.1970 - Bellingham