Unix和Windows的命令行GUID? [英] Command line GUID for Unix and Windows?
本文介绍了Unix和Windows的命令行GUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有用于Unix和Windows的命令行工具,它使用相同的算法创建 GUID
解决方案
'e2fsprogs'项目维护 uuidgen b
$ b
http://e2fsprogs.sourceforge.net/
它已经在任何Linux / BSD *发行版上可用。
对于Windows我推荐安装Cygwin,'e2fsprogs'
$ b p>只需运行:
$ uuidgen -r#基于随机的UUID / GUID
$ uuidgen -t基于时间的UUID / GUID
Is there a command line tool for Unix and Windows that uses the same algorithm to create GUIDs for both platforms?
解决方案
'e2fsprogs' project maintain uuidgen utility.
http://e2fsprogs.sourceforge.net/
It is already available on any Linux/BSD* distros.
For Windows I recommend install Cygwin, 'e2fsprogs' package available from there!
As report j4y this utility is available under MAC OS.
Just run:
$ uuidgen -r # random based UUID/GUID $ uuidgen -t # time based UUID/GUID
这篇关于Unix和Windows的命令行GUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文