UEFI or Lecacy BIOS in use

When installing operating systems, it is good to know what mode is in use. The mode can check via Terminal using command

[ -d /sys/firmware/efi ] && echo "UEFI mode" || echo "Legacy mode"

Also is good know the partition table type (GPT or msdos).

sudo parted -l