Is there any Linux command how to get the current HDP Version? I am working on Centos 7.
You can check the HDP version from Ambari UI.
for 2.7 and Higher Version : Stack and Versions->Versions
for 2.6 or Lower Version : Admin->Stack and Versions->Versions
From Command Line try these commands to check the HDP version.
rpm -qa|grep hadoop