Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
addingnumbers
· 3y ago · 0 comments
grep isn't necessary at all here:
lsof -s TCP:LISTEN -i :$port
Comments
[–]
hdjjhhvvhga
3y ago
You could also add the -t option for direct piping to kill.