How to escape @ symbol in enviroment file? [duplicate]

I have my /etc/environment file set up with proxy settings. It looks like this -

http_proxy=""
https_prxoxy=""

The password contains an @ symbol which somehow seems to be conflicting with the latter @ symbol because of which I am not able to connect to the network. How do I escape the @ symbol in the password?

3

1 Answer

Lets say that the password is 123@456. In that case, the correct wat to escape the @ symbol is this:

http_proxy=""
https_prxoxy=same_as_above

I've only replaced the @ with its ASCII hexadecimal representation (%40)

You Might Also Like