UNIX Operating System
Explore the fundamentals of UNIX system programming in Go by understanding stdin, stdout, stderr file descriptors, process categories, and how Go handles processes and threading with goroutines for system-level applications.
We'll cover the following...
We'll cover the following...
stdin, stdout, and stderr
Every UNIX operating system has three files open all the time for its processes. Remember that UNIX considers everything, even a printer or our mouse, as a file. UNIX uses file descriptors, which are positive integer values, as an internal representation for accessing open files, which is much prettier than using long paths. So, by default, all UNIX systems support three special and standard filenames: /dev/stdin, /dev/stdout, and /dev/stderr, which can also be ...