System z is IBM's mainframe architecture (the hardware).
z/OS is the flagship operating system. It is at its heart a batch-oriented system, but it does have a Unix subsystem (called USS for "Unix System Services", formerly known as MVS OpenEdition or OMVS) that is in fact certified against a rather old version of the Single Unix Specification.
So in a way, z/OS is in fact a Unix system, but that is kind of like saying that Windows is a Unix due to Cygwin or Microsoft's Services for Unix. Mostly, it is very non-Unix-like.
Interestingly, IBM also offers a number of other operating systems for System z, including VM (although that system apparently does little but host virtual machines), TPF (a "real-time" transaction processing system) and zVSE (formerly known as DOS/360, another, smaller batch-oriented system). And, of course, Linux is available from a number of distributions. Oh, and just for good measure, Open Solaris was ported to run inside VM, although I am not sure what became of that or if anyone is actually using it.
It uses the 3270 terminal (xterm has a 3270 mode I've used), interface is predominantly 'ispf', it's essentially menu driven; you can browse/search the filesystem, edit files, submit jobs (everything is a job ie jcl ie job control language; compile, run programs etc) browse job spools (stdout from a job).
Google will show you images of ispf, browsing the jcl manuals will give you nightmares.
It is not terrifying per se, just ... very different.
I have only had brief contact with JCL, but I remember having to figure out how to get a command line into JCL that was more than 80 characters in length. It took me two days to figure that out, and none of the old-timers in the team had ever had to do that. When I did find the solution, it was surprisingly simple, but finding it took me a lot of time.
Wait, is it a UNIX system or have a UNIX subsystem? Those are different. I know it has the subsystem. I'm trying to recall when someone said it was a UNIX. Stuff I read on it is more MVS than UNIX. Example with some data:
POSIX isn't actually about operating systems. POSIX (1003.1) is about source-level compatibility for 2 languages: C99 and shell scripts.
If your C programs use only C99+POSIX facilities, and your shell programs use only POSIX features and utilities, and they work on a platform, then that platform is eligible to be POSIX certified. POSIX doesn't care about the kernel or syscalls or anything like that. It cares about libc, libm, libl, and a couple of file paths.
Actually to a certain extent, I think one could call POSIX the actual C runtime library.
As C runtime + POSIX calls (I know it didn't exist back then) is what defined C when it was still UNIX only, but ANSI didn't want to make the language standard that big.
Linux is just the kernel. Distributions should certify. And I do not see anyone going fot it. There is at least one distribution posix certified: Inspur K-UX.
The equivalence in linux land should be LSB, which many distributions certify to.
OMVS mapped a hierarchical filesystem onto the dataset based mainframe filesystem. It's one hell of a kludge, imo. It's kind of like how cygwin attempts to emulate stuff windows doesn't have, like fork. Mainframe has the concept of a started task, which is kinda similar, but not quite
It's an architecture called z/Architecture, used for z Systems CPUs such as the z13 CPUs in IBM mainframes (the z13, same name). The 'z' in 'IBM z Systems' stands for 'zero downtime'.
System/360 was meant to be a good all-around system, not optimized specifically for business or science, as previous mainframes were, but good for both. 360 degrees in a circle, you know.
Notice how it skips System/380. IBM was going to replace the mainframe line with its Future Systems project, which would have single-level store (everything is RAM, everything persists, page cache takes care of moving stuff in and out of physical disk drives) and be so tightly-integrated nobody would be able to clone it, as the plug-compatible vendors had been able to clone parts of the System/360 and /370 systems. The only real result of this was the AS/400 midrange systems, now the i Series, I think.
"z" is the marketing term for all of IBM's mainframe products. There are several different operating systems that can run on the mainframes.
This port only applies to those running Linux on their mainframe, which isn't terribly common. Most would be running zOS (https://en.wikipedia.org/wiki/Z/OS) or TPF. Their VM hypervisor is also commonly used.