Re: /dev/console (deleted)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 11, 2009 at 10:21 PM, Bizhan Gholikhamseh (bgholikh)
<bgholikh@xxxxxxxxx> wrote:
> The /dev/console still is there:
> bash-4.0# ls -al /proc/self/fd
> dr-x------    2 root     root            0 Jan  6 06:08 .
> dr-xr-xr-x    5 root     root            0 Jan  6 06:08 ..
> lrwx------    1 root     root           64 Jan  6 06:08 0 ->
> /dev/console (deleted)
> lrwx------    1 root     root           64 Jan  6 06:08 1 ->
> /dev/console (deleted)
> lrwx------    1 root     root           64 Jan  6 06:08 2 ->
> /dev/console (deleted)
> lr-x------    1 root     root           64 Jan  6 06:08 3ls:
> /proc/self/fd/3: cannot read link (not a symlink?)
>
> bash-4.0# ls -al /dev/console
> crw-r--r--    1 root     root       5,   1 Sep 15  2009 /dev/console
>
>
> Any other idea????

That means, the file is first opened and then unlinked. So, IMO in
simple words it's like having "seamless" access to console.

The unlinking process, IMO, is done to allow redirection later,
whether it's for stdin, stdout and stderr

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux