delete files in /dev/pts
Hi
I delete all files in directory /dev/pts and now i not connected to server from SSH. How can I fix this problem? |
They have to be recreated.
It has been a very long time since I worked with AIX, their MAY be a "MAKEDEV" script in the /dev directory. You will have to look up whether there is, and how to use it (if it exists). It may be in lowercase - "makedev" Otherwise you will have to look up the major/minor numbers and use mknod... BTW, the "pts" devices are used for any networked terminal, and anywhere a terminal interface is simulated. |
Use command seq to generate these devices:
Code:
$ ls -l /dev/pts | sort -n -k10 Code:
for i in $(seq 1 255); do mknod -m 0666 /dev/pts/$i c 25 $i; done |
if you deleted something else too (under /dev), probably a reboot would be better
|
By the way, why did you remove the /dev/pts devices?
|
All times are GMT -5. The time now is 03:57 PM. |