Amazon Interview Question

How would find system information? What commands would you use on Linux and windows?