To get a list of all TCP connection
lsof -i TCP
Note that here sudo is used to elevate permission so we can get a list of all the connection.
#Linux#Commandline#lsof
below output
LISTEN shows what are the listening ports
ESTABLISHED will show established outgoing connections
To get a list of open files by a specific user use :
lsof -u username
Note that here sudo is used to elevate permission so we can get a list of all the files that this user opened.
#Linux#Commandline#lsof#Network
Server-Sent Events(SSE) vs. WebSockets(WS) in Web 🕸️
Both SSE and WS are used to enhance user experience by sending data realtime.
But there are key differences.
So lets dive in 🏎️ .