Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 010-160 Exam - Topic 1 Question 63 Discussion

Posted by Elli on Mar 30, 2026 at 07:49 PM

When typing a long command line at the shell, what single character can be used to split a command across multiple lines?

Suggested Answer: A

The backslash character () is used to escape the meaning of the next character in a command line. This means that the next character is treated as a literal character, not as a special character. For example, if you want to use a space in a file name, you can use a backslash before the space to prevent the shell from interpreting it as a separator. Similarly, if you want to split a long command line across multiple lines, you can use a backslash at the end of each line to tell the shell that the command is not finished yet. The shell will ignore the newline character and continue reading the next line as part of the same command. For example, you can write:

ls -l

/home/user/Documents

instead of:

ls -l /home/user/Documents

Both commands will produce the same output, but the first one is easier to read and type.Reference:

Linux Essentials - Linux Professional Institute (LPI), section 2.1.2

2.1 Command Line Basics - Linux Professional Institute Certification Programs, slide 7.


Get Premium 010-160 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
AS
Ashlee 3 months ago
Definitely! It helps keep commands readable.
CE
Celeste 3 months ago
Yeah, backslash works for line continuation.
VA
Val 3 months ago
I think it's the backslash.
LE
Lettie 4 months ago
I always forget that, thanks for the reminder!
CH
Christiane 4 months ago
Yup, backslash works for that!
TR
Tran 4 months ago
Wait, are you sure? I thought it was something else.
AD
Adelina 5 months ago
Agreed, backslash is the way to go.
LA
Lashandra 6 months ago
It's definitely the backslash!
AN
Annice 6 months ago
I might be mistaken, but I thought it was the caret symbol. I should probably double-check my study materials.
HE
Helene 7 months ago
I vaguely recall that the backslash is used for line continuation. It seems familiar from my notes.
AS
Ashlyn 7 months ago
I'm not entirely sure, but I feel like I practiced a question similar to this where we had to split a command. Was it a backslash?
JO
Josefa 7 months ago
I think it's the backslash character, right? I remember it being used to continue commands in the shell.
0/2000 characters

Save Cancel