|sudo <cmd>||runas /user:admin <cmd>||This will run the command with admin-privileges on Linux, while on Windows it’ll simply run as the user provided (so you need to run as a user who has local administrator rights)|
|cat src1.js src2.js > compiled.js||type src1.js src2.js > compiled.js||Combine two or more files into one|
|ifconfig||ipconfig||Shows network information|
|traceroute||tracert||Trace an address and show routes|
|uptime||net stats server or net stats workstation||Windows don’t have a builtin command to show uptime in days, but this command will show you when the machine was last booted (do the math)|
|ls||dir||Show directory contents|
|free||mem||Show available RAM|
I started on this article a couple years ago but was quickly forgotten in the drafts bin. Now I actually don’t have any Windows computers available anymore and can’t be arsed to look up more commands so this’ll have to work for now.
Some simple commands such as
rmdir has been ignored for now as they’re equal in both operating systems.
Please post a comment below if you know of any useful commands available on both operating systems.