/dev/tcp는 어디로 갔나요? [복사]

/dev/tcp는 어디로 갔나요? [복사]

/dev/tcp여러 소스에서 자주 언급되는 내용인데 얼마전에 우분투에서 본 것 같습니다. 이제 Debian Jessie에서는 찾을 수 없습니다. 와 동일합니다 /dev/udp.

tomasz@E4200:/dev$ ls
agpgart          dm-1     hidraw3       network_latency     sda2      tty11  tty24  tty37  tty5   tty62    vcs2   vfio
autofs           dm-2     hpet          network_throughput  sda5      tty12  tty25  tty38  tty50  tty63    vcs3   vga_arbiter
block            dm-3     hugepages     null                sg0       tty13  tty26  tty39  tty51  tty7     vcs4   vhci
bsg              dm-4     initctl       port                shm       tty14  tty27  tty4   tty52  tty8     vcs5   vhost-net
btrfs-control    dm-5     input         ppp                 snapshot  tty15  tty28  tty40  tty53  tty9     vcs6   watchdog
bus              dri      kmsg          psaux               snd       tty16  tty29  tty41  tty54  ttyS0    vcs7   watchdog0
char             fb0      kvm           ptmx                stderr    tty17  tty3   tty42  tty55  ttyS1    vcsa   xconsole
console          fd       log           pts                 stdin     tty18  tty30  tty43  tty56  ttyS2    vcsa1  zero
core             full     loop-control  random              stdout    tty19  tty31  tty44  tty57  ttyS3    vcsa2
cpu              fuse     mapper        rfkill              tomas-vg  tty2   tty32  tty45  tty58  uhid     vcsa3
cpu_dma_latency  fw0      mcelog        rtc                 tty       tty20  tty33  tty46  tty59  uinput   vcsa4
cuse             hidraw0  mem           rtc0                tty0      tty21  tty34  tty47  tty6   urandom  vcsa5
disk             hidraw1  mqueue        sda                 tty1      tty22  tty35  tty48  tty60  vcs      vcsa6
dm-0             hidraw2  net           sda1                tty10     tty23  tty36  tty49  tty61  vcs1     vcsa7

어딘가로 옮겨졌나요? (왜?) 이것이 모든 Linux에 적용됩니까?

이를 완료하기 위해 다음을 수행합니다.

Linux E4200 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux

고쳐 쓰다

/dev/tcp를 찾을 수 없습니다그는 내 질문에 대답하지 않았습니다.

이 답변:

/dev/tcp/74.125.225.19/80파이프라인에서 사용할 때 bash이름이 지정된 명령을 실행 /dev/tcp/74.125.225.19/80하고 파일이 존재하지 않기 때문에 오류를 보고해 보세요.

/dev/tcp나 한테는 별로 말 안 해 .둘 다부분 리디렉션연결됨.

질문에 대한 첫 번째 답변에서 제가 알아낸 것은 /dev/tcp"dummy" 폴더가 있다는 것입니다. 이에 대해 설명하는 링크를 게시해 주세요. 아시는 분은 항상 그랬는지 답변 부탁드립니다.

답변1

/dev/{tcp,udp}그냥 내부를 bash하세요. /proc/net/{tcp,udp}커널에 저장된 TCP 및 UDP 소켓

관련 정보