Handy Commands
- Copy recursively (e.g., contents of child folders): cp -r /origin/path /destination/path
- Decompress a tar.gz file: tar -xvzf name.tar.gz
- Search for Available Packages: apt-cache search keyword
- Start/Stop/Restart Services: service nameofservice whattodo
- e.g.., service apache2 stop
- Create a Symlink: ln -s /origin/path /symlink/path
- Generate an SSH Key: sshkeygen -t rsa -b 4096
- Copy SSH key from Local to Remote Host: scp /path/local/id_rsa.pub [email protected]:~/tmp.pub