Kubectl Cheatsheet
Contexts
- Get current context
$ kubectl config current-context
$ kubectl config current-context
az account list
az account set --subscription _subscription_
gcloud info | grep -A 8 "Current Properties"
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
shutdown -r -t 0
$ chmod 600 ~/.ssh/config
$ chown $USER ~/.ssh/config
$ df
$ du
$ ncdu
The seven Open Systems Interconnection (OSI) layers are:
This is the layer at which communication partners are identified -- Is there someone to talk to? -- network capacity is assessed -- Will the network let me talk to them right now? -- and where the data or application is presented in a visual form the user can understand. This layer is not the application itself, it is the set of services an application should be able to make use of directly, although some applications may perform application-layer functions.
$ sudo apt-get install figlet lolcat strace
$ sudo mv /etc/update-motd.d/00-header /etc/update-motd.d/00-header-old
$ sudo chmod -x /etc/update-motd.d/*
$ sudo touch /etc/update-motd.d/00-header
$ sudo chmod +x /etc/update-motd.d/00-header
$ sudo vi /etc/update-motd.d/00-header
$ cd /dev/
$ ls -la | less
$ cd /media/
# dvd sr0
$ mkdir dvd
$ sudo mount /dev/sr0 /media/dvd
$ cd /media/dvd
$ vobcopy -o /media/plex/import
Open Terminal in Ubuntu The easiest way to open terminal is to right click on desktop and select Open Terminal. You can also click Ctrl+Alt+T on your keyboard.
In Terminal, type the following or copy and paste the following lines, one by one, then click enter.
$sudo add-apt-repository ppa:b-rad/kernel+mediatree+hauppauge