[英]uname on Windows Terminal
我想知道命令uname
是否适用于 Windows 终端? 如果是这样,它是什么 output? 我读到它可能是Windows
或WindowsNT
我相信 uname 向您展示了您的内核。 所以在 GNU/Linux 上,运行 uname 会给你 Linux,因为那是你的内核。 在 Windows 或 WindowsNT 之外,我认为 Windows 会给你 Windows NT,因为那是它使用的内核。
$ whatis uname
uname (1) - print system information
uname (2) - get name and information about current kernel
我认为您可以使用systeminfo
获得类似的信息。
在 Windows 中,uname-equivalent 是“ver”命令。
>ver
Microsoft Windows [Version 10.0.19044.1889]
您可以创建一个小脚本,将其命名为 uname.cmd
>type uname.cmd
@ver
然后你在 Windows 上有你自己的 uname 命令
>uname
Microsoft Windows [Version 10.0.19044.1889]
我在我的 Windows 10 PC 上测试了上述内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.