Linux Commands and WordPress

Thanks to one of the SysAdmin Valley reads who alerted me to a mistype in one of the blogs.  When you are typing in Linux commands into WordPress and it uses a double hyphen, you need to change the formatting to “Preformatted” for the text.  The reason it, WordPress converts the double hyphens into a single hyphen.   See the following example.

With double hyphens & normal formatting:

rpm –version

With double hyphens & preformatted formatting:

rpm --version

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.