Objective: On Linux, create /dev/tcp
character device if it’s missing or if it’s not enabled by default.
The /dev/tcp
file is a character device on Linux with major, minor IDs of 30 and 36. To create the device on Linux, run the following command on a shell terminal as root.
1 |
# mknod /dev/tcp c 30 36 |
Once the device has been created, verify that the device has been created using ls
.
1 2 |
# ls -l /dev/tcp crw-r--r-- 1 root root 30, 36 Sep 7 16:39 /dev/tcp |
The Linux Device List contains the list of major, minor numbers of supported devices on Linux.