- 论坛徽章:
- 0
|
回复 #4 boldeagle 的帖子
solaris
/proc/642/fd>ls -l
total 0
c--------- 1 zhongyj tty 24, 1 Dec 30 15:43 0
c--------- 1 zhongyj tty 24, 1 Dec 30 15:43 1
c--------- 1 zhongyj tty 24, 1 Dec 30 15:43 2
c--------- 1 zhongyj tty 24, 1 Dec 30 15:43 255
D--------- 1 root root 0 Dec 30 15:39 3
/proc/642/fd>pfiles -F 642
642: -bash
Current rlimit: 256 file descriptors
0: S_IFCHR mode:0620 dev:295,0 ino:452037596 uid:65535 gid:7 rdev:24,1
O_RDWR|O_NOCTTY|O_LARGEFILE
/dev/pts/1
1: S_IFCHR mode:0620 dev:295,0 ino:452037596 uid:65535 gid:7 rdev:24,1
O_RDWR|O_NOCTTY|O_LARGEFILE
/dev/pts/1
2: S_IFCHR mode:0620 dev:295,0 ino:452037596 uid:65535 gid:7 rdev:24,1
O_RDWR|O_NOCTTY|O_LARGEFILE
/dev/pts/1
3: S_IFDOOR mode:0444 dev:305,0 ino:57 uid:0 gid:0 size:0
O_RDONLY|O_LARGEFILE FD_CLOEXEC door to nscd[140]
/var/run/name_service_door
255: S_IFCHR mode:0620 dev:295,0 ino:452037596 uid:65535 gid:7 rdev:24,1
O_RDWR|O_NOCTTY|O_LARGEFILE FD_CLOEXEC
/dev/pts/1
linux
/proc/2503/fd>ls -l
total 0
lrwx------ 1 zhongyj zhongyj 64 Dec 28 18:18 0 -> /dev/pts/0
lrwx------ 1 zhongyj zhongyj 64 Dec 28 18:18 1 -> /dev/pts/0
lrwx------ 1 zhongyj zhongyj 64 Dec 28 18:18 2 -> /dev/pts/0
lrwx------ 1 zhongyj zhongyj 64 Dec 28 18:18 255 -> /dev/pts/0 |
|