Mysql MySQL Locations Mac /usr/local/mysql/bin Windows /Program Files/MySQL/MySQL version/bin Xampp /xampp/mysql/bin Add mysql to your PATH 1# Current Session 2export PATH=${PATH}:/usr/local/mysql/bin 3# Permanantly 4echo 'export PATH="/usr/local/mysql/bin:$PATH"' >> ~/.bash_profile Login 1mysql …
Read MoreGit configuration 1git config --global user.name "Your Name" 2git config --global user.email "you@example.com" 3git config --global color.ui auto STAGE 1git status 2git add [file] 3git reset [file] 4git diff 5git diff --staged 6git commit -m “[descriptive message]”
Read MoreCluster Info Get clusters 1kubectl config get-clusters Get cluster info. 1kubectl cluster-info 2Kubernetes master is running at https://172.17.0.58:8443 Contexts A context is a cluster, namespace and user. Get a list of contexts. 1kubectl config get-contexts Get the current context. 1kubectl config current-context …
Read MoreUser management useradd [USERNAME] - Add new user useradd -G [GROUPNAME][username]- Add new user in group passwd [USERNAME] - User account is locked until you set a password with the passwd command usermod -a -G [GROUPNAME][username] - Add user in group userdel [USERNAME] - Remove the existing user cat /etc/passwd | …
Read More