openSUSE – Get the HTTP Proxy setting in Shell

In openSUSE, you can set the HTTP Proxy in YaST. but this setting is independent of $http_proxy in shell which means you cannot get the current proxy setting by the following command

  • echo $http_proxy


Actually the you can find the proxy setting in /etc/sysconfig/proxy.

To obtain the current proxy setting, u can make use of the following command

  • cat /etc/sysconfig/proxy | egrep ^HTTP_PROXY | cut -d "\"" -f 2

Done =)

Advertisements

2 thoughts on “openSUSE – Get the HTTP Proxy setting in Shell”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.