Sample Header Ad - 728x90

How can I find the serial number on a mac programmatically from the terminal?

49 votes
7 answers
75770 views
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.
Asked by bmike (244495 rep)
Feb 13, 2012, 06:49 PM
Last activity: Oct 3, 2024, 11:00 AM