"how to open a terminal window in MAC".
If Terminal.app is missing, you could reinstall macOS, on top of your current installation. I mean even though you have macOS installed install it again over top of what you already have installed, without deleting or erasing anything. This should replace what comes with your version of macOS which is deleted.