Unix How-To: Quotes to Live By

Written By
SH
Sandra Henry-Stocker
Sep 10, 2010

“One of the things that really throws new Unix users is when to
use quotes and which kind of quotes. Between single quotes, double
quotes and back ticks, a person can start to feel that Unix is
unnecessarily tricky.

“Double quotes are the easiest to understand. Unlike Windows,
the only way to work on the command line with files whose names
contain blanks (e.g., “my file”) is to enclose the file names in
some kind of quotes. If you want to echo text to a user containing
strings of consecutive blanks (e.g., “first second”), you need the
quotes, else you get “first second”.”


Complete Story

SH

Sandra Henry-Stocker

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.