It is possible that i should know the flavor of Linux through command-line
if i run the following command
$ uname -s output is
Linux
it just showing "Linux" and but not flavor name of Linux.
Have you tried cat /etc/*-release
?
Other commands that might work:
cat /etc/system-release # I believe mostly Red Hat based distro
cat /proc/version