stdout to console

Jonathan Neuschäfer j.neuschaefer at gmx.net
Wed Apr 25 14:59:10 EDT 2012


On Wed, Apr 25, 2012 at 02:09:24PM -0400, Sri Ram Vemulpali wrote:
> > We all know that when an application writes to stdout, data ends up in
> > the console.
> Because for that process index 1 maps to /dev/stdout

Or rather, /dev/stdout maps to fd 1.
$ ls -l /dev/stdout
lrwxrwxrwx 1 root root 15 Apr 25 18:18 /dev/stdout -> /proc/self/fd/1

Thanks,
	Jonathan Neuschäfer



More information about the Kernelnewbies mailing list