最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

system - Mac computers: how to get the OS serial number? - Stack Overflow

programmeradmin5浏览0评论

I read some docs but I have no Mac boxes to test.

From the docs I build this command

ioreg -c IOPlatformExpertDevice -n IOPlatformUUID

Questions:

  1. Is the above command correct? I am not sure: should be -n or -k to specify the property name ?

  2. Does it require "administrator" privileges or can a normal user account run it?

Thanks

I read some docs but I have no Mac boxes to test.

From the docs I build this command

ioreg -c IOPlatformExpertDevice -n IOPlatformUUID

Questions:

  1. Is the above command correct? I am not sure: should be -n or -k to specify the property name ?

  2. Does it require "administrator" privileges or can a normal user account run it?

Thanks

Share Improve this question asked Mar 15 at 15:58 MassimoMassimo 3,4863 gold badges32 silver badges42 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You should use -k instead of -n.
The -k flag filters the output to show only entries that have the specified property key.

The command must be :

ioreg -c IOPlatformExpertDevice -k IOPlatformUUID

发布评论

评论列表(0)

  1. 暂无评论