Skip to content

Instantly share code, notes, and snippets.

@rohancme
Last active April 17, 2017 22:00
Show Gist options
  • Save rohancme/a3e72b36e92a55491956111b136febd9 to your computer and use it in GitHub Desktop.
Save rohancme/a3e72b36e92a55491956111b136febd9 to your computer and use it in GitHub Desktop.
# Sort disk usage asc
du -k -m -h -c / | sort -h
# listen for udp packets on a port
sudo tcpdump -i lo udp port 514
# make all .sh files in a directory executable
find ./ -name "*.sh" -exec chmod +x {} \;
# rsync through ssh tunnel
rsync -avzP -e "ssh -A user@proxy ssh" user@remote-vm:filename .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment