Last active
January 10, 2020 16:47
-
-
Save gmoqa/ce9fa1ce87c2ef9b12f1d528eee20979 to your computer and use it in GitHub Desktop.
linux snippets
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
cat ~/.ssh/id_rsa.pub | ssh <USERNAME>@<IP-ADDRESS> 'mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys' | |
/etc/motd | |
sudo usermod -a -G docker <usuario> | |
#(logout and login) | |
history | awk '{ print $2 }' | sort | uniq -c | sort -rn | head | |
# unix demostration | |
scp desarrollo@10.0.0.135:/home/desarrollo/app/src/config /home/gmoqa | |
scp -i ~/.ssh/WTProd2.pem ../Desktop/wt.zip centos@52.20.154.29:/home/centos/ | |
#copy remote file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment