Skip to content
Tech News
← Back to articles

The Windows equivalents of the most used Linux commands

read original get Linux Command Cheat Sheet → more articles
Why This Matters

This article highlights the similarities between Linux and Windows commands, emphasizing how Windows users can perform essential networking and system tasks with familiar commands. Understanding these equivalents enhances cross-platform efficiency and eases the transition for users switching between operating systems, which is increasingly relevant in diverse tech environments.

Key Takeaways

Whether it is to pipe the Tcpdump output to another machine hosting Wireshark or checking which service is listening on which port, Windows cmd has similar commands that are present in Linux. Here is some of the most command used in Linux that have equivalent purpose on Windows:

Filtering the output of a commande:

Linux: lsof -s | grep 'https'

Windows: netstat -n -a | findstr "https" (//note the double quotes)

Piping tcp dump to another machines that hosts Wireshark

Author's note: From here on, the content is AI-generated

Linux: ssh root@remote-linux "tcpdump -s 0 -U -n -w - -i eth0 not port 22" | wireshark -k -i -

Windows: ssh root@remote-linux "tcpdump -s 0 -U -n -w - -i eth0 not port 22" | "C:\Program Files\Wireshark\wireshark.exe" -k -i - (//note that Windows 10 and 11 come with a native SSH client built into cmd!)

... continue reading