curl ifconfig.me
zshrc 사용할 경우
vim ~/.zprofile
export 변수명=변수값 작성 후, esc->:wq 로 저장
이후, source ~/.zprofile 커맨드 입력
tar -czf test.tgz test
tar -xvf test.tgz
# lsof (list open files) 이
lsof -iTCP -sTCP:LISTEN -n -P
# netstat 이용시
netstat -anv | grep LISTEN
# pid만 찾을 경우
lsof -t -i :포트번호
# IPv4만 (TCP & UDP)
lsof -i 4
# IPv6만 (TCP & UDP)
lsof -i 6