Skip to content

Instantly share code, notes, and snippets.

@jaumemk
Last active February 22, 2017 09:36
Show Gist options
  • Save jaumemk/43ad739f76c91893706e2ae0b0b0660c to your computer and use it in GitHub Desktop.
Save jaumemk/43ad739f76c91893706e2ae0b0b0660c to your computer and use it in GitHub Desktop.
# own cheat sheet
## wilcards are inside brackets
## disk usage of {directory} sumary human readable
$ du -sh {directory}
## scan a port or a port range of the {host}
$ nmap -p {1-n} {host}
## copy my public key to remote host
$ cat ~/.ssh/id_rsa.pub | ssh {username}@{host} 'cat >> ~/.ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment