Files "/dev/fd*"are special devices. In fact, they do not take up so much space in your system. They allow the process of accessing file descriptors by number; 0,1,2are standard input, standard outputand standard error, and other open files begin with3
sftp -b /dev/fd/3
:
[root@04 fd]# exec 3< /etc/resolv.conf
[root@04 fd]# cat /dev/fd/3
search example.com
nameserver 10.10.10.10
nameserver 20.20.20.20
read
[root@04 fd]
[root@04 fd]
nameserver 10.10.10.10
/dev/fd directoy
[root@04 fd]
total 0
lrwx
lrwx
lrwx
lr-x
.