Skip to content

Instantly share code, notes, and snippets.

View hnimminh's full-sized avatar
💭
I may be slow to respond.

Minh hnimminh

💭
I may be slow to respond.
View GitHub Profile

ANSIBLE NOTE

Addhoc Command

  • Check Ansible Connection for all inventory host ansible -i inventory/staging all -m ping

  • Run Shell Command: ansible -i inventory/staging webservers -m "shell" -a "systemctl status nginx"

@hnimminh
hnimminh / linux.shell.md
Last active May 5, 2020 06:39
LINUX SHELL COMMAND LINE

LINUX SHELL COMMANDLINE

NETWORKING

  • TCP DUMP: tcpdump -nqt -s0 -A -i any port 5060 |grep "computer networking" -A 10 -B 10
  • Ping with MTU size: ping 122.152.145.101 -s 1500

ADVANDCE

  • Find & Replace: find ./hoiio/ -type f -exec sed -i "s/<origin_string>/<new_string>/g" {} +
  • Repeat Command n times: for i in {1..10}; do <command>; done