***Linux*** ++++++++ http://www.manojkumar.info/todo/ego/?id=33 #Docker isssue sudo chmod 666 /var/run/docker.sock #Link https://www.howtogeek.com/412055/37-important-linux-commands-you-should-know/ #ls ls -la | awk '{print $1, $2, $3, $4, $5, $9}' #Find running port netstat -ano | find "port number" netstat -ano|findstr 80 netstat -ano|find ":80" #Set free running port taskkill /PID XXX (force kill: taskkill /F /PID XXX) taskkill /F /PID 10204 #find find / -name my.cnf locate my.cnf #services sudo systemctl start mysql sudo systemctl enable mysql sudo systemctl restart mysql #search on vi ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -https://www.cyberciti.biz/faq/find-a-word-in-vim-or-vi-text-editor Press ESC key search: /mysql (enter) + n (forward) / N (backward) Forward search : /mysql Backward search : ?mysql #env===================================== Commands set :: To show the all env var in (windows) export :: To show the all env ar in (linux) env :: similar as export (linux) echo %GOPATH% :: To show gopath How to set environmental vars : https://hackprogramming.com/2-ways-to-permanently-set-path-variable-in-ubuntu/ 1. Add in file (/etc/environment) 2. Using ~/.profile file /etc$ vi ~/.profile -add or modify env var /etc$ source ~/.profile 3a. Temp modify env (Linux) $ export GOPATH=/home/abc/go_test:$PATH $ go env 3b. Temp modify env (Windows) c:>set GOPATH=D:go_test