list services command line linux code example
Example 1: linux list services
$ systemctl list-units --type=service
Example 2: show services linux
$ pstree | head -n 5
$ systemctl list-units --type=service
$ pstree | head -n 5