Last active
October 4, 2016 15:26
-
-
Save tsvetomir/be03bd76347642ff2f20 to your computer and use it in GitHub Desktop.
Command-line Fu
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
# Find broken symlinks | |
find /target/dir -type l ! -exec test -e {} \; -print | |
# Find and replace | |
find /some/path -type f -exec sed -i 's/old/new/g' {} \; | |
# Capture packets on a remote machine | |
# https://ask.wireshark.org/questions/36872/problem-capturing-remotely-by-running-tshark-on-the-remote-machine-and-piping-it-to-wireshark | |
ssh server1 'tcpdump -U -w - port not 22' | wireshark -k -i - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment