Review questions Flashcards
What are SSH keys? What are the purpose of them?
SSH keys are created using public key cryptography and is used to verify your identity when making an ssh connection to another server.
Where are SSH keys in the local machine? server?
local machine = ~/.ssh
server = ~/.ssh/authorized_keys
What commands create ssh keys?
ssh-keygen
(useful flags: -t to specify which encryption method, -f for folder location for key)
How does the ssh command work?
provide identity file with -i, user to login as and ip address of server
ie ssh -i /path/to/key root@123.342.234
How to move up, down, right, left in nvim?
h-left
j- down
k- up
l-right
How do you move to the top of the buffer in nvim?
gg
How do you move to the bottom of the buffer in nvim?
G
How do you move to the start of a line in nvim?
0
How do you move to the end of a line in nvim?
$ (or A to move it at the end and into insert mode)
What are the four basic nvim modes?
- Insert (I)
- Command (:)
- Visual (v)
- Replace (R)
How to force quit in nvim?
:q!
How to save in nvim?
:w
/etc
configuration files
/usr
contains system-wide, read-only files
/bin
Holds binary files like important commands