how to get a list in ubuntu code example
Example 1: how to find installed packages in ubuntu
apt list --installed
Example 2: how to get list of users in ubuntu
cat /etc/passwd
#check list of users in linux ubuntu
Example 3: list apt installed programs
# Use aptitude to get packages which were expressly installed (not just as dependecies)
aptitude search '~i!~M'