Sometimes working in Linux you may need to output configuration file content without comments and empty lines.
In this case you can use command sequence below:
cat /etc/my.cnf |grep -v '#' |sed '/^$/d' |more
You can replace /etc/my.cnf with another configuration file name and '#' with any other comment mark e.g. ';' or '//'