Skip to content

Instantly share code, notes, and snippets.

@rafaelrozon
Last active February 1, 2019 00:21
Show Gist options
  • Save rafaelrozon/ba8a14c989c37f04731f8706226b0991 to your computer and use it in GitHub Desktop.
Save rafaelrozon/ba8a14c989c37f04731f8706226b0991 to your computer and use it in GitHub Desktop.
CLI Commands

Network

tcpdump -ni any port <port #> - show current connections

Search

grep -rnw '/path/to/somewhere/' -e 'pattern' - search for word in directory

List

ls -halt sort by date, most recent first, human readable, don't ignore files that start with .

s -1 | wc -l count number of files in directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment