Cheatography
https://cheatography.com
Configurationsudo apt-get update | sudo apt-get install git | sudo apt install net-tools | sudo apt-get install apache2 | sudo apt install vim |
Setup xRDPsudo apt-get install xfce4 | sudo apt-get install xrdp | sudo systemctl enable xrdp | echo xfce4-session >~/.xsession | sudo service xrdp restart | sudo passwd rdpuser |
Servicesservice <name of service> start/stop/restart/status | self-explanatory | chkconfig <service> on | auto-start on redhat | chkconfig --list <service> | remove auto-start on redhat | update-rc.d <service> defaults | auto-start on debian | update-rc.d -f <service> remove | remove auto-start on debian | netstat -antl | port information |
| | History Operations~/.bash_history | contains history even after reboot | !v | run last command that starts with v | !$ | last argument | !?etc | last command contains etc | history | show command history | cd . | change to home dir | !30 | run command at line number 30 from history | ctrl-r | search commands, esc or enter to edit or run | HISTCONTROL=erasedups | erase duplicate commands from history | history -c + history -w | clear history | history -r | whenever you last wrote |
Shutdownshutdown | shutdown | reboot | reboot | poweroff | same as shutdown | halt | same as shutdown | init 0 | same as shutdown | init 6 | same as shutdown | shutdown -r +n "warning" | reboot in n minutes, display warning | shutdown -r now | reboot now | shutdown -c | cancel a pending shutdown | shutdown -h | shutdown and then halt | shutdown hh:mm | shutdown at specified time |
|
Help Us Go Positive!
We offset our carbon usage with Ecologi. Click the link below to help us!
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by shribee