这些术语究竟是什么意思?
在 Windows 上,人们可能会说驱动器 C: 或分区 C:。在 Linux 上,我不确定分区应该使用什么,因为它们没有名称。
$ ls -l /dev/stdin /dev/fd/0
lrwx------ 1 tim tim 64 2011-08-07 09:53 /dev/fd/0 -> /dev/pts/2
lrwxrwxrwx 1 root root 15 2011-08-06 08:14 /dev/stdin -> /proc/self/fd/0
$ ls -l /dev/pts/2 /proc/self/fd/0
crw--w---- 1 tim tty 136, 2 2011-08-07 09:54 /dev/pts/2
lrwx------ 1 tim tim 64 2011-08-07 09:54 /proc/self/fd/0 -> /dev/pts/2
Run Code Online (Sandbox Code Playgroud)
/dev
及其子目录下的所有文件都是设备的文件描述符?/dev/fd/0
、
/dev/stdin
、/proc/self/fd/0
都是指向 的链接/dev/pts/2
。l
in lrwx------
mean link,c
incrw--w----
是什么意思?