Windows
Linux
Networking
Windows netsh winhttp show proxy equivalent in Linux
Shows proxy environment variables used by command-line applications and package managers.
Windows
→
netsh winhttp show proxy
Linux equivalents
env | grep -i proxy
env | grep -i proxy
env | grep -i proxy
Overview
What this command does
Shows proxy environment variables used by command-line applications and package managers.
Migration tip: Linux proxy settings are often stored in
http_proxy, https_proxy and no_proxy, but desktop environments and applications can also have separate settings.Practical tasks
Common use cases
Inspect proxy settings
Shows proxy environment variables used by command-line applications and package managers.
env | grep -i proxy
Show proxy environment variables
printf "%s\n" "$https_proxy"
Print the HTTPS proxy
systemctl --user show-environment | grep -i proxy
Inspect the user service environment
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
env | grep -i proxy
printf "%s\n" "$https_proxy"
systemctl --user show-environment | grep -i proxy
Walkthrough
Examples with explanations
env | grep -i proxy # find proxy variables
printf "%s\n" "$https_proxy" # show the HTTPS proxy
systemctl --user show-environment | grep -i proxy # check the systemd user environment
Reference
Common options and variations
| Command or option | Use |
|---|---|
env | grep -i proxy | Show proxy environment variables |
printf "%s\n" "$https_proxy" | Print the HTTPS proxy |
systemctl --user show-environment | grep -i proxy | Inspect the user service environment |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
This command is the same on Debian/Ubuntu, Fedora and Arch Linux when the relevant tool is installed.
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | same command | env | grep -i proxy |
Same command on this distribution. |
| Fedora | same command | env | grep -i proxy |
Same command on this distribution. |
| Arch | same command | env | grep -i proxy |
Same command on this distribution. |
Keep learning