I've seen so many cyg
prefixed things like cygstart
, cygpath
, cygwin
etc., but what exactly does this prefix mean?
3 Answers
Cygnus solutions was a company that provided commercial support for free software, they were founded in 1989 and merged with Redhat in 2000. The name was apparently a recursive acronmy for "Cygnus, your GNU Support".
They were a major contributor to free software, but their most famous project was Cygwin. Cygwin is a posix compatibility layer for Windows and a port of the GNU software stack to said compatibility layer.
Cygwin used the "cyg" prefix as a naming convention for cygwin-specific functionality, for example.
- "/cygdrive/" is used as a path prefix to allow acess to files outside the cygwin root.
- "cygstart" is an application similar to the windows "start" program used to start GUI apps from the command line but integrated with cygwin.
- "cygpath" is a tool to convert between windows paths and posix style paths.
The MSYS2 environment used by the likes of "Git bash", borrows some code and conventions from cygwin (though other conventions are different, for example MSYS2 uses /c for the C: drive rather than /cygdrive/c ) and so you will see "cyg" prefixes there too.
-
Seems like Git Bash uses MinGW64, is The MSYS2 environment used by the likes of "Git bash" inaccurate? Commented Dec 2, 2021 at 7:09
-
-
1My reading of that link is that the "git bash" environment is a mixture of pure mingw programs and msys2 programs.– plugwashCommented Dec 2, 2021 at 12:51
cyg comes from Cygnus. Refer this link: https://en.wikipedia.org/wiki/Cygnus_Solutions
CYG derives from the Company "Cygnus Solutions". From Wikipedia:
Cygwin began in 1995 as a project of Steve Chamberlain, a Cygnus engineer