Try (maybe as root)
lsof -i -P
and grep the output for the port you are looking for.
For example to check for port 80 do
lsof -i -P | grep :80
Inserted from
Check bash shell script user & usage
Saturday, September 26, 20158:52 AMBash script display usage and check userSometimes it is needed to check what user is executing the bash script and whether the user supplied all required arguments:#!/bin/bash di...
Usage of tcpdump » Linux by Examples
Usage of tcpdump » Linux by Examples
Wednesday, August 12, 201512:23 PM This post will only covers the fundamental of tcpdump usage, bare in mind tcpdump can do much much more than what I illustrate here.Lets start...
Port is open or closed on UNIX? - Stack Overflow
Port is open or closed on UNIX? - Stack Overflow
Wednesday, August 05, 20152:23 PM
Try (maybe as root)lsof -i -Pand grep the output for the port you are looking for.For example to check for port 80 dolso...
How to add a character on every line in vi editor
How to add a character on every line in vi editor
Saturday, August 01, 20153:22 AM
05-15-2008, 05:08 AM #2ilikejamSenior MemberContributing Member Registered: Aug 2003Location: GlasgowDistribution: Fed...
Bash Shell: Display All Hidden Dot Files In a Directory
Bash Shell: Display All Hidden Dot Files In a Directory
Saturday, August 01, 20153:12 AM
≡ MenuTutorialsBASH ShellTroubleshootingNginxNetworkingMySQLGoogle Cloud PlatformAmazon Cloud ComputingRac...
String Comparison
Description
Str1 = Str2
Returns true if the strings are equal
Str1 != Str2
Returns true if the strings are not equal
-n Str1
Returns true if the string is not null
-z Str1
Returns true if the string is null
Numeric Compariso...
http://codewiki.wikidot.com/shell-script:if-else