Operating System Programming 4DISS

(V144a-20210918). This site is managed by VauLSMorg (vlsm.org) since 2020.
May the fork() be with Jolan Tru! --- operatingsystems (@T) vlsm dot org.

View on GitHub

HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT

BASH Aliases

Create/Edit “.bash_aliases

cat > $HOME/.bash_aliases << EOF
# Thu 15 Jul 2021 20:24:15 WIB
# If cores = 2; j=2
export MAKEFLAGS='-j2'

alias cl='clear;echo ""'
alias h='history'  
alias gac='git add -A && git commit'
alias ggg='git pull; git add -A; git commit -m "OS212 cbkadal"; git push;'
alias glog='git log --all --decorate --oneline --graph'
alias mv='mv -i'  
alias rm='rm -i'  
alias sss='. ~/.bash_profile'
extraprompt() {
   local EXSTAMP=\$(printf "%8.8X" \$(( \$(date +%s) & 16#FFFFFFFF )) )
   local EXCHSUM="XXXXXXXX"
   [ "\$(hostname)" = "\$USER" ] && {
       EXCHSUM=\$(echo "\$USER\$EXSTAMP"|sha1sum|tr '[a-z]' '[A-Z]'| cut -c1-8)
   }
   echo  ZCZC \$EXSTAMP \$EXCHSUM
}
export PROMPT_COMMAND="extraprompt"
export EDITOR=/usr/bin/vi
export HISTSIZE=2000
export HISTFILESIZE=2000
export LFS=/mnt/lfs
EOF

source $HOME/.bash_profile

cbkadal@cbkadal:~$ cat > $HOME/.bash_aliases << EOF
> # Thu 15 Jul 2021 20:24:15 WIB
> # If cores = 2; j=2
> export MAKEFLAGS='-j2'
>
> alias cl='clear;echo ""'
> alias h='history'  
> alias gac='git add -A && git commit'
> alias ggg='git pull; git add -A; git commit -m "OS212 cbkadal"; git push;'
> alias glog='git log --all --decorate --oneline --graph'
> alias mv='mv -i'  
> alias rm='rm -i'  
> alias sss='. ~/.bash_profile'
> extraprompt() {
>    local EXSTAMP=\$(printf "%8.8X" \$(( \$(date +%s) & 16#FFFFFFFF )) )
>    local EXCHSUM="XXXXXXXX"
>    [ "\$(hostname)" = "\$USER" ] && {
>        EXCHSUM=\$(echo "\$USER\$EXSTAMP"|sha1sum|tr '[a-z]' '[A-Z]'| cut -c1-8)
>    }
>    echo  ZCZC \$EXSTAMP \$EXCHSUM
> }
> export PROMPT_COMMAND="extraprompt"
> export EDITOR=/usr/bin/vi
> export HISTSIZE=2000
> export HISTFILESIZE=2000
> EOF

cbkadal@cbkadal:~$ source $HOME/.bash_profile

ZCZC 60EFF86C 96B514FC
cbkadal@cbkadal:~$



HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT