Busybox, netstat, no -p

You can find the equivalent information in slightly uglier form (a.k.a. hexadecimal) in /proc/net/tcp. There, you can find the inode of the connection, which you can look up under /proc/$pid/fd/. For example: $ cat /proc/net/tcp sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode 0: 00000000:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 …

Read more

How to find out which processes are using swap space in Linux?

The best script I found is on this page : http://northernmost.org/blog/find-out-what-is-using-your-swap/ Here’s one variant of the script and no root needed: #!/bin/bash # Get current swap usage for all running processes # Erik Ljungstrom 27/05/2011 # Modified by Mikko Rantalainen 2012-08-09 # Pipe the output to “sort -nk3” to get sorted output # Modified by …

Read more