How Do You Write Multiple Lines in Linux?
Contents

How do I type multiple lines in terminal?

End the line with a backslash ”. The backslash is the escape character, which in this case means that you are escaping the invisible newline character that follows it. This forces the shell to temporarily ignore the enter command, allowing you to span multiple lines.

How do you write a multi-line in shell script?

In Shell or Bash shell, we can comment on multiple lines using << and name of comment. we start a comment block with << and name anything to the block and wherever we want to stop the comment, we will simply type the name of the comment.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest