What Does Backslash Do in Linux?
Contents

A backslash at the end of a line in a shell script makes the shell ignore the newline for the purposes of executing the script. This is normally used to split long lines in a script file into multiple text lines, which will be handeled as a single script line by the shell.

What is backslash in bash?

A non-quoted backslash ‘ ‘ is the Bash escape character. It preserves the literal value of the next character that follows, with the exception of newline .

Does backslash work on Linux?

On any Mandriva GNU/Linux system the global aliases (for all users) are all in /etc/profile. … Use a “” (backslash) before the command to run it without the alias. (backslash) The backslash escape character can be used before a shell command to override any aliases.

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