Skip to content

Instantly share code, notes, and snippets.

@zainengineer
Last active September 16, 2021 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zainengineer/acf2dd42222d675a4c14642312295037 to your computer and use it in GitHub Desktop.
Save zainengineer/acf2dd42222d675a4c14642312295037 to your computer and use it in GitHub Desktop.

Copy path name

  1. right click file
  2. Hold down options button (Alt button)
  3. copy "file_name.ext" will change to copy "file_name.ext" as Pathname

Port listen

lsof -nP -i4TCP:9000 | grep LISTEN

clear DNS

sudo killall -HUP mDNSResponder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment