find ports

Simple command to find open ports

for x in `ps -ef | awk ' { print $2 } '`; do echo PID: $x ; pfiles $x | grep "port: "; done

find in files

Simple command to find information in files

find /test | xargs grep -il kuba