|
IBOA View IBOA View is a unix/linux shell wrapper useful to developers and administrators on unix/linux systems. IBOA View is created by Darrin Meek in the mid 1990s and has been used by numerous companies and persons to increase performance, reduce cycle times, and improve productivity in unix/linux environments. If you are a developer or an administrator on a unix/linux based system, IBOA View is for you. IBOA View Lite is included here. Simply cut and paste this version of IBOA View into the bottom of your .bashrc (or equivalent) file. Use the 'aa' (add alias) command to tailor your environment to your project and your needs. Happy Aliasing!
A couple of caveats:
1. Technically, aliases should be defined with single quotes instead of double quotes. We use double quote delimiters during alias definition because we feel they are easier to read and we prefer variable expansion during alias definition.. We 'escape' (via backslash (\) ) from the behavior of special characters such as $, ", etc. when necessary. Single quote delimiters are suggested instead of double quote delimiters for less experienced developers and administrators.
2. This is a small set of starter aliases. See link at bottom of this web page for suggested additions to these aliases.
##########################################################################
### << IBOA START COPY FOR PASTE HERE >>
##########################################################################
# IBOA View Lite
alias aa="vi ~/.bashrc; source ~/.bashrc" # add alias
alias lr="ls -lrth" # listing reverse time order human readable
alias s="ps ef | grep" # search for a process via process status
alias u="cd .." # change directory (up) one level
alias uu="u;u" # change directory (up) two levels
alias uuu="u;u;u" # change directory (up) three levels
alias uuuu="u;u;u;u" # change directory (up) four levels
alias uuuuu="u;u;u;u;u" # change directory (up) five levels
alias gt="cd /tmp" # go (to) tmp directory
alias ge="cd /etc" # go (to) etc directory
alias gb="cd /bin" # go (to) bin directory
##########################################################################
##########################################################################
# IBOA View Heavy
PATH=$PATH:/cygdrive/c/cygwin/bin
MYEDITOR=vi; MYEDITOR=ed
MYSOURCEFILE=.bashrc
alias aa="$MYEDITOR ~/$MYSOURCEFILE; source ~/$MYSOURCEFILE" # add alias
# aa version compatible when OS prevents writing to ~/$MYSOURCEFILE via ~ reference
alias aa="cd; $MYEDITOR $MYSOURCEFILE; source $MYSOURCEFILE; cd -" # add alias
alias lr="ls -lrth" # listing reverse time order human readable
alias s="ps ef | grep" # search for a process via process status
alias u="cd .." # change directory (up) one level
alias uu="u;u" # change directory (up) two levels
alias uuu="u;u;u" # change directory (up) three levels
alias uuuu="u;u;u;u" # change directory (up) four levels
alias uuuuu="u;u;u;u;u" # change directory (up) five levels
alias gt="cd /tmp" # go (to) tmp directory
alias ge="cd /etc" # go (to) etc directory
alias gb="cd /bin" # go (to) bin directory
alias tick="j=0; while true; do let j=\$j+1; echo j=\$j /`date/`; date; sleep 1; done" # tick
alias tick="while true; do date; sleep 1; done" # tick
alias tick="j=0; while true; do let j=\$j+1; echo j=\$j; date; sleep 1; done" # tick
alias term="/cygdrive/c/cygwin/bin/mintty.exe" # new terminal
alias te=term # new terminal
alias ed="/cygdrive/c/Windows/write.exe"
##########################################################################
# AutoInstall into .bashrc file (copy and paste below into unix/linux/cygwin term window)
cp .bashrc .bashrc.tmp
cp .bashrc .bashrc.`date +%s`
cp .bashrc .bashrc.save.iboa.`date`
echo "alias aa=\"cd; ed .bashrc; source .bashrc; cd -\"" >> .bashrc.tmp
echo "alias sa=\"cd; dos2unix .bashrc 2>/dev/null; source .bashrc; cd -\"" >> .bashrc.tmp
echo "alias ed=\"/cygdrive/c/Windows/write.exe\"">> .bashrc.tmp
echo "alias gb=\"cd /bin\"">> .bashrc.tmp
echo "alias ge=\"cd /etc\"">> .bashrc.tmp
echo "alias gt=\"cd /tmp\"">> .bashrc.tmp
echo "alias loop=\"for file in *;do sleep 1;ls *;done\"">>.bashrc.tmp
echo "alias lr=\"ls -lrth\"">> .bashrc.tmp
echo "alias s=\"ps ef | grep \"">> .bashrc.tmp
echo "alias te=\"term\"">> .bashrc.tmp
echo "alias term=\"/cygdrive/c/cygwin/bin/mintty.exe\"">> .bashrc.tmp
echo "alias u=\"cd ..\"">> .bashrc.tmp
echo "alias uu=\"u;u\"">> .bashrc.tmp
echo "alias uuu=\"u;u;u\"">> .bashrc.tmp
echo "alias uuuu=\"u;u;u;u\"">> .bashrc.tmp
echo "alias uuuuu=\"u;u;u;u;u\"">> .bashrc.tmp
echo "alias ns=\"cd; touch newscript.sh; chmod 755 newscript.sh; ed newscript.sh; cd -\"" >> .bashrc.tmp
echo -----------------------------------------------------------------------------
echo Testing .bashrc.tmp
echo ----------------------------------------------------------------------------
echo This Area should be clean (empty)
source .bashrc.tmp
echo -----------------------------------------------------------------------------
echo If .bashrc.tmp sourced nicely, uncomment and run two commands below and happy aliasing!
echo -----------------------------------------------------------------------------
echo \#uncomment two commands below
echo \#cp .bashrc.tmp .bashrc
echo \#source .bashrc
############################################################################
##########################################################################
### << IBOA END COPY FOR PASTE HERE >>
##########################################################################
############################################################################
The web site below is nearly identical in concept to Iboa View. In fact, our favorite alias ('aa') is included albeit with a less beneficial definition in our view ('alias' which overrides the unix command so we advise against)... Also, a variant of our 'lr' alias is included at 'lt' in the link here: http://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html
############################################################################
Contact us today to receive assistance from our information systems experts.
|