Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

macOS linux Notes

Chris Jones edited this page Feb 21, 2019 · 2 revisions

Definitions

The difference between daemons and agents is that daemons run as root and are intended to run in the background.
Agents are run with the privileges of a user and may run the foreground.

stack a place in physical memory where a running program process stores local variables

netstat is used to display network connections, routing tables and a whole bunch of network and interface stats.

When a function is called, it’s arguments are pushed onto the stack.

Usage commands

To monitor which files an application is accessing

fs_usage

Networking

netstat a program creates a socket, binds a port, then listens for a connection.

To display a list of active TCP or UDP connections

netstat -n -A inet -t
netstat -n -A inet -u

To find out all the ports being used by a single application or process using the PID

netstat -A inet -n -p | grep PID

Clone this wiki locally

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /