List all installed packages in Ubuntu Terminal

To list all installed packages in Ubuntu use the following code in Terminal –
apt list –installed