ip -6 address show is the command used for this purpose. It provides the details of IPv6 addresses on the device, i.e. link-local, loopback and global.
Command ip -6 address show provides information about IPv6 addresses configured on each network interface, including the interface name, IPv6 address, prefix length, and additional details.
Interface Name: The command lists all network interfaces, and for each interface, it displays its name (e.g., eth0, lo, etc.).
IPv6 Address: It shows the assigned IPv6 address for each interface.
Prefix Length: Indicates the length of the IPv6 address prefix associated with each address.
Additional Details: It may provide additional details about the state of the interface, the scope of the address (e.g., global or link-local), and whether there is a specific route associated with the address.