← All commands
Topic hub Networking
Windows Linux Networking Expanded guide

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
Debian/Ubuntu same command
env | grep -i proxy
Fedora same command
env | grep -i proxy
Arch same command
env | grep -i proxy

Overview

What this command does

On Windows, "netsh winhttp show proxy" is used to inspect proxy settings. On Linux, the closest practical mapping shown here is "env | grep -i proxy". Shows proxy environment variables used by command-line applications and package managers. This reference is grouped under Networking.

Migration tip: Linux proxy settings are often stored in <code>http_proxy</code>, <code>https_proxy</code> and <code>no_proxy</code>, but desktop environments and applications can also have separate settings.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows netsh winhttp show proxy maps to env | grep -i proxy for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

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 optionUse
env | grep -i proxyShow proxy environment variables
printf "%s\n" "$https_proxy"Print the HTTPS proxy
systemctl --user show-environment | grep -i proxyInspect the user service environment

Distro differences

Debian/Ubuntu vs Fedora vs Arch

Debian/Ubuntu, Fedora and Arch all use "env | grep -i proxy" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.

DistributionPackage manager / baseEquivalent commandDifference 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

Related Networking commands