This is a draft cheat sheet. It is a work in progress and is not finished yet.
File Management
pbcopy < {{filename}} |
Copies stdin contents to clipboard |
|
|
Ubuntu Commands
apt |
Package management tool |
apt install {{package_name}} |
Installs a package using apt |
nano {{filename}} |
Opens file in nano text editor |
SSH
ssh {{user}}@{{url}} |
Access remote server at url (or IP) |
ssh {{user}}@{{host}} -p {{port}} |
Access remote server at custom port |
ssh-copy-id {{user}}@{{host}} |
Copies public key to server |
ssh-keygen -t rsa -b 4096 |
Generate 4096-bit RSA key pair |
ssh-add -l |
List all identities |
ssh-add -D |
Delete all identities |
ssh -tt {{host}} ssh -tt {{host}} |
Multi-hop SSH connection |
|