what command was used to create a filesystem

How do we determine what command was used (either newfs or mkfs) to create a filesystem?

Thanks,

There is no way telling unless the operator was using a shell that keeps a history in which case you can try looking for any history file in the root user's home directory and seeing if newfs or mkfs is listed in them (assuming you are looking for a fairly recent occurence).

If all you want to know is what the file system type is now then use the fstyp(1m) command.

In any case, mkfs was used as newfs is a front end to it.