Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 974 Bytes

bash.md

File metadata and controls

55 lines (34 loc) · 974 Bytes

useful scripts

  • checkout env vars: [#script]
printenv | grep PATH

commands & tricks

check out @b0rk on twitter!

bash

[#bash #tricks #cheat-sheet]

bash

grep

[#grep]

grep

xargs

[#xargs #pipe]

xargs

ssh

copying public key on server using ssh

[#ssh #remote #server]

cat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

wait

[#wait #bash #timeout #port]

wait-for-it

./wait-for-it.sh -t 0 www.google.com:80 -- echo "google is up"