Skip to content

ganhuang/shell-misc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Some notes for me to learn Shell

PS1="\e[1;32m[\\u \\w]\\$\e[m "
[ghuang ~/git/ganhuang/shell-learning]$
  • Peer's certificate issuer has been marked as not trusted by the user.
git config --system http.sslverify false
  • tmux
tmux -S /tmux/tmux-ghuang new -s shared
tmux -S /tmux/tmux-ghuang attach -t shared

tmux -S /var/tmux/jiajliu attach -t shared

export TMUX_GROUP=tmux
groupadd $TMUX_GROUP
mkdir /var/tmux
chgrp $TMUX_GROUP /var/tmux
chmod g+ws /var/tmux
usermod -aG $TMUX_GROUP user1
usermod -aG $TMUX_GROUP user2
  • RAFT

  • Google Load Balancer

Need deamon: https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/google_compute_engine/ip_forwarding/ip_forwarding_daemon.py
https://stackoverflow.com/questions/10259266/what-does-proto-kernel-means-in-unix-routing-table

shell prompt

(cd /tmp && git clone --depth 1 --config core.autocrlf=false https://github.com/twolfson/sexy-bash-prompt && cd sexy-bash-prompt && make install) && source ~/.bashrc

delete unwanted spaces in the end of the lines (vim)

:%s/\s\+$//e

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages