Remove spacing after backslash

I am trying to produce the following output:

\opt\mtwilson\configuration

by using `\textbackslash{}opt \textbackslash{}mtwilson \textbackslash{}configuration`, however this outputs

\opt \mtwilson \configuration

How do I remove the spacing?

• `\textbackslash opt\textbackslash mtwilson\textbackslash configuration`, i.e. replace the `{}` by real space or try `\verb!\opt\mtwilson\configuration!` – user31729 Jun 24 '17 at 21:44
• You have spaces after `opt` and `mtwilson`: just remove them. – egreg Jun 24 '17 at 21:46
• @ChristianHupfer ??? The `{}` doesn't act like space and, indeed, that's not the source of the problem. – egreg Jun 24 '17 at 21:46
• You could consider the `url` package and its `\path` command. – egreg Jun 24 '17 at 21:48
• This is a unix path isn't it ? Don't you mean slashes `/` instead of backslashes `\ `, then ? – marsupilam Jun 24 '17 at 21:53

``````\textbackslash opt\textbackslash mtwilson\textbackslash configuration