Variable: system-type
system-type is a variable defined in emacs.c.
Value
gnu/linux
Documentation
The value is a symbol indicating the type of operating system you are using.
Special values:
gnu compiled for a GNU Hurd system.
gnu/linux compiled for a GNU/Linux system.
gnu/kfreebsd compiled for a GNU system with a FreeBSD kernel.
darwin compiled for Darwin (GNU-Darwin, macOS, ...).
ms-dos compiled as an MS-DOS application.
windows-nt compiled as a native W32 application.
cygwin compiled using the Cygwin library.
Anything else (in Emacs 26, the possibilities are: aix, berkeley-unix,
hpux, usg-unix-v) indicates some sort of Unix system.
Probably introduced at or before Emacs version 19.31.
Source Code
// Defined in /usr/src/emacs/src/emacs.c
DEFVAR_LISP ("system-type", Vsystem_type,
doc: /* The value is a symbol indicating the type of operating system you are using.
Special values:
`gnu' compiled for a GNU Hurd system.
`gnu/linux' compiled for a GNU/Linux system.
`gnu/kfreebsd' compiled for a GNU system with a FreeBSD kernel.
`darwin' compiled for Darwin (GNU-Darwin, macOS, ...).
`ms-dos' compiled as an MS-DOS application.
`windows-nt' compiled as a native W32 application.
`cygwin' compiled using the Cygwin library.
Anything else (in Emacs 26, the possibilities are: aix, berkeley-unix,
hpux, usg-unix-v) indicates some sort of Unix system. */);