#  VARIOUS ALIAS, shell options and FUNCTIONS - updated 12 January 2021 jm
HISTFILE="/home/luser/.History/`/bin/date '+%Y_%m_%b_%d_%H:%M'.history`" 
HISTSIZE=2048; export HISTSIZE  # default is usually 1024, acceptable
alias fdl="sudo fdisk -l  | sed 's/^$/  --/g' | grep -E '(Device|dev|-------)'"
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, full path or \ to override
alias cp="/bin/cp -i"    # -i prevents overwriting, full path or \
alias rm="rm -i"         # -i prevents overwriting, full path or \
alias dfh='df -h | grep -v fs | grep -v boot | grep -v udev'
# alias dfh='/bin/df -h | /bin/grep sda' # modify to show primary file systems
alias dfa='df -h | grep sda' 
alias mroe=more           # add any other words you mistype often
alias cd4="cd ../../../..; ls -al"
alias cd3="cd ../../..; ls -al"
alias cd2="cd ../..; ls -al"
alias h3='head -n 3'  # useful for checking files
alias h4='head -n 4'  # useful for checking files
alias h5='head -n 5'  # useful for checking files
alias t3='tail -n 3'  # useful for checking files
alias t4='tail -n 4'  # useful for checking files
alias t5='tail -n 5'  # useful for checking files
shopt -s histverify  # allows recall historical commands, edit, then use
shopt -s checkwinsize
#   FUNCTIONS:  be aware of keywords
# creates directory structure and cd to the lowest level
function dir-mkcd () { mkdir -p "$@" && eval cd "\"\$$#\""; }
# grep functions for Bible versions - case insensitive and places quotes
function gn () { grep -i "$*" ~/BIBLES/NAS.txt;}
function gn3 () { grep -C 3 -i "$*" ~/BIBLES/NAS.txt;}
function gk () { grep -i "$*" ~/BIBLES/KJV.txt;}
function gk3 () { grep -C 3 -i "$*" ~/BIBLES/KJV.txt;}
function gb () { grep -C 1 -i "$*" ~/BIBLES/KNb.txt;}
function gg () { grep -A 1 -i "$*" ~/BIBLES/ND.txt;}
function gg3 () { grep -A 5 -B 4 -i "$*" ~/BIBLES/ND.txt;}

JohnMeister.com Today's Date:

fotomeister: john's fotos

Study the Bible on line
LPIC-2 Study Guide:
The Art of Linux Sys Admin
O'Reilly author info
e-books by john
john's e-books:
Simply Linux: Basics Linux Tackles Microsoft  Full Size Jeep Buyer's Guide
Practical Suggestions for Microsoft Windows
Using BASH on Windows 10 Mac and Jack

Linux Overview

bashrc and basics
The vi editor -- Linux notes
Scripting -- Filesystems
OS performance info -- Sys Admin

STUDY it    ...in ONE year
Israel National News -- BBC: MidEast
Der Spiegel -- Voice of the Martyrs
News Links -- Jihadwatch.org
South East Asian Missions
overview of mankind's history
"Promises and Prophets"

Study it daily!
verse by verse teachings: MP3
Details of the Passover week


BibleTech: KJV-NAS-Greek-German

Buyer's Guide

SJ 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:

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

NW pollen count
Seattle traffic