Click to See Complete Forum and Search --> : Comments in configuration files


Red Lotus
09-17-2001, 11:57 PM
Quick question. In order to add a comment into a linux configuration file, say /etc/fstab, would I do this:

# this is a comment because it starts with a pound sign

I've seen this type of comment in perl. So are linux configuration files perl files? :confused:

[ 17 September 2001: Message edited by: Red Lotus ]

TheGimp
09-18-2001, 12:58 AM
Originally posted by Red Lotus:
<STRONG>are linux configuration files perl files?</STRONG>

no

Craig McPherson
09-18-2001, 03:23 AM
It depends entirely on the program reading the configruation file. "#" is generally interpreted as a comment by most programs, but there are always exceptions. For example, have you ever tried putting #'s in a BIND zone file? BIND uses ;'s as comments. There are other special cases, but usually #'s will work.


So are linux configuration files perl files?


Wha?