Skip to content

Instantly share code, notes, and snippets.

View p2ndemic's full-sized avatar

p2ndemic

View GitHub Profile
@miglen
miglen / linux-networking-tools.md
Last active June 25, 2025 15:37
Linux networking tools

List of Linux networking tools

netstat (ss)

Displays contents of /proc/net files. It works with the Linux Network Subsystem, it will tell you what the status of ports are ie. open, closed, waiting, masquerade connections. It will also display various other things. It has many different options. Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.

Sample output:

Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4 0 0 127.0.0.1.62132 127.0.0.1.http ESTABLISHED
@nicerobot
nicerobot / chrome-cookies.sh
Created December 7, 2011 16:59
Convert Google Chrome sqlite Cookies into cookies.txt. Useful for utilities like curl.
sqlite3 -separator ' ' ${COOKIES:-Cookies} \
'select host_key, "TRUE", path, "FALSE", expires_utc, name, value from cookies'
# See following for more information: http://www.infinitered.com/blog/?p=19
# Path ------------------------------------------------------------
#export PATH=/foo:/foo/bar:$PATH # add the directories you want included in the path
if [ -d ~/bin ]; then
export PATH=:~/bin:$PATH # add your bin directory to your path, if you have it. It's a good place to add all your scripts
fi