Skip to content
Advertisement

Double backslash under Linux bash

In the Linux bash to identify a Windows folder I have to use double backslash for example "java -jar myjar.jar C:\Users\username" while in the Windows command prompt does not need, just "java -jar myjar.jar C:Usersusername", is it normal?

Advertisement

Answer

Yes, the backslash is used for newlines and special characters in bash. But since Windows uses backslashes in file paths, it does not need a double backslash.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement