参见英文答案 > /dev/tcp not found????????????????????????????????????1个
>????????????/dev/tcp not present in Linux????????????????????????????????????1个
/ dev / tcp经常在许多来源中提到,我想我不久前在Ubuntu中看到过它.现在,在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
UPDATE
这个答案:
When you used /dev/tcp/74.125.225.19/80 in a pipe, bash attempted to
run a command named /dev/tcp/74.125.225.19/80 and reported an error
because that file didn’t exist.
并没有告诉我很多关于/ dev / tcp的信息.没有Redirections section挂钩.
我从第一个回答我的问题收集/ dev / tcp是一个“虚拟”文件夹.请发布解释此信息的链接.如果你知道的话,请回答是否一直如此.