Skip to content

Instantly share code, notes, and snippets.

@darookee
Created May 17, 2015 11:53
Show Gist options
  • Select an option

  • Save darookee/09b76865731cf5815276 to your computer and use it in GitHub Desktop.

Select an option

Save darookee/09b76865731cf5815276 to your computer and use it in GitHub Desktop.
SystemD Replacement for "service --status-all"
#!/bin/bash
# https://www.reddit.com/r/commandline/comments/35zs03/systemd_replacement_for_service_statusall/cr9f13q
for t in $(systemctl --type help | grep -v "^Available"); do
echo -e "\n---------- ${t^^} ----------"
systemctl --all --no-pager --type="$t" --show-types
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment