*NIX ↔ Windows command equivalencies (more-or-less):
*NIX | Windows |
---|---|
cat | type |
dig | nslookup |
grep | findstr / select |
ifconfig | ipconfig |
ls | dir |
more | more |
netstat | netstat |
ping | ping |
shutdown | shutdown |
sleep | timeout |
sudo | RunAs |
tcpdump | windump |
traceroute | tracert |
wget | wget |
hostname | hostname |
whoami | whoami |
You can also manipulate command input and output in a similar fashion:
- Redirect to a file:
>
- Pipe the output of one command into another:
|
- Run commands in sequence, stopping at the first failure:
&
(Windows) or&&
(*NIX)