Last active
February 22, 2017 09:36
-
-
Save jaumemk/43ad739f76c91893706e2ae0b0b0660c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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