title: List All Loaded/Unloaded or Both Launch Agents On macOS
body: <p>I am trying to figure out how many launch agents are loaded right now using following command the it</p>
  <pre><code>find /System/Library/Launch* /Library/Launch* ~/Library/Launch* -name '*.plist' -exec sh -c '/usr/libexec/PlistBuddy -c &quot;Print Label&quot; {} &amp;&amp; echo {}' ';' | grep -wf &lt;(launchctl list | grep -o &quot;\S\+\..*$&quot;) -A1
  
  grep -B 1 -A 1 &quot;active count = 1$&quot; &lt;&lt;&lt; &quot;$(launchctl dumpstate)&quot;
  </code></pre>
  <p>but its not listed the one I am looking for.
  is it correct?</p>