Excerpt from the book Unix and Linux System Administration Handbook by Evi Nemeth , Garth Snyder , Trent R. Hein , and Ben Whaley
Text within quotation marks often has a precise technical meaning. In these cases, we ignore the normal rules of U.S. English and put punctuation outside the quotes so that there can be no confusion about what’s included and what’s not.