Duplicate Official command as custom one

Able to duplicate official command as custom one to understand how custom command works.

Where can we find the Official command folder ? (Mac Os)