strace -e trace=open,read ls /
-
which files and libs process PID uses
lsof -p PID
-
which ports and protocols are listening
lsof -s -p PID
echo "Never gonna give you up" > nc -4u host 1212
tcpdump -A -s0 -ilo tcp port 6379
tcpdump [-Asi] COMMAND
-A for ASCII -s for size of packets. If 0, no size -i for the network interface
COMANND listen a port, a socker
There is a great utility called 'ldd', which can list depedent libraries used by a given executable file.
PS: I've just finished reading 4linux's 501 you borrowed me. Thanks! 👍