Is there any command to check if a download is in progress on macos?
I want to know if there's a command that let's me monitor whether a file is being downloaded on my mac. I used to use the netstat -s
followed by a grep to find all the connections established
but apple seems to have removed it recently due to security reasons.
I've run the command both with and without sudo and it gives me the error
netstat: sysctl: net.inet.ip.input_perf_data: No such file or directory
The netstat -s
command isn't the one giving me the error. The error is displayed when I use gerp and try to find the connections established
I'm using macOS 10.13 High Sierra
From man netstat
:
-s Show per-protocol statistics. If this option is repeated, counters with a value of zero
are suppressed. For security reasons, root privileges are required to read TCP statistics
and in the absence of such privileges all TCP counters will be reported as zero.
So sudo
must be used to get TCP statistics.
$ sudo netstat -s | grep -i established
netstat: sysctl: net.inet.ip.input_perf_data: No such file or directory
198120 connections established (including accepts)
Not sure whether established connections are the same as downloads though.