Many conf files use the # character to designate a comment. Therefore you can use the grep utility to filter out the lines that you don't want to see.
grep -v \# <filename>
The usual behavior of grep is to display the lines in a file containing the search character(s). Here the -v reverses the behavior of grep. The \ character tells the Bash shell to pass the next character to grep rather than interpret it as a regular expression.
More information can be found in the man pages. (Man is short for manual.)
Or the grep utility will provide similar information.