List This Mac's Shared Services

See what your Mac is currently sharing with the network using the built-in sharing tool.

macOSsharingclisecurityLow risk
Run `sharing -l` to print the active sharing configuration.

01Command

Command
$ sharing -l

02What it does

Sharing settings live across several System Settings panes, so it is easy to forget what is turned on. `sharing -l` prints the machine's shared services in one list — a quick security audit after setting up a new Mac or cleaning up an old one. If anything shows as shared that you do not recognise, turn it off in System Settings > General > Sharing.

03Risk

RiskLow risk
!Warning: This is an undocumented Apple tool and its output format can change between macOS releases — treat it as an audit aid, not a scriptable API.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-18 · Category: Security & Privacy

06Related solutions