Installing a binary file in fedora

I knew that but what function does the \ accomplish in Linux?

It can be used for different things in different places, but it is often used to indicate continuation of commands. I.e., if you want or need to separate a command into multiple lines of entry, type a \ as the last character of a line, then continue typing on the next line.

1 Like

The \ also is used to remove or “escape” the special meaning of a lot of characters and is often referred to as the “escape character”.
For example we use something like “echo $PATH” to see how the path is defined in our environment and the $ is a special character. To change that to a literal $ it would be used as \$, so the output of “echo \$PATH” would be totally different. Try it and see.

1 Like

thanks for explaining that Tim

I thought that was the “-”

for example in debian based systems i beleive an example would be:
apt-get install

or software-centre

could you give me an example?

ah yes I beleive I saw this in my MATLAB program somewhere.

I will try it now thanks JV !

pacman -Qs \
nvidia

1 Like

In order to display the \ you must enter it as ‘\\’. It needs to be “escaped” in order to display on the forum posts.

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.