What command can I use to retrieve the system's serial number from the unix command line? As uname will output some information about the software and hardware, I would like to retrieve the serial number from a command to use in a script.
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
|
||||
|
|
|
The system_profiler command is perhaps the best tool for the job (assuming you are on 10.3 or newer), but you can also use ioreg for the task.
|
|||||
|