Skip to content

Instantly share code, notes, and snippets.

@gmoqa
Last active January 10, 2020 16:47
Show Gist options
  • Save gmoqa/ce9fa1ce87c2ef9b12f1d528eee20979 to your computer and use it in GitHub Desktop.
Save gmoqa/ce9fa1ce87c2ef9b12f1d528eee20979 to your computer and use it in GitHub Desktop.
linux snippets
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