当前位置: 技术问答>linux和unix
为什么我的cygwin下没有/dev目录?也没有/dev/ttyS0?
来源: 互联网 发布时间:2015-11-30
本文导语: 请指教,谢谢! | There is no need to create a POSIX /dev directory as Cygwin automatically simulates it internally. These devices cannot be seen with the command ls /dev/ although commands such as ls /dev/tty work...
请指教,谢谢!
|
There is no need to create a POSIX /dev directory as Cygwin automatically simulates it internally. These devices cannot be seen with the command ls /dev/ although commands such as ls /dev/tty work fine. If you want to be able to see all devices in /dev/, you can use Igor Pechtchanski's create_devices.sh script.
Cygwin supports the following devices commonly found on POSIX systems: /dev/dsp, /dev/null, /dev/zero, /dev/console, /dev/tty, /dev/ttym, /dev/ttyX, /dev/ttySX, /dev/pipe, /dev/port, /dev/ptmx, /dev/mem, /dev/random, and /dev/urandom. Some other POSIX devices, such as /dev/kmem, are planned for development. Cygwin also has several Windows-specific devices: /dev/comX (the serial ports, starting with COM1 which is the same as ttyS0), /dev/conin (Windows CONIN$), /dev/conout (Windows CONOUT$), /dev/clipboard (the Windows clipboard, currently text only), and /dev/windows (the Windows message queue).
更多信息请参见:
http://www.cygwin.com/cygwin-ug-net/using-specialnames.html
Cygwin supports the following devices commonly found on POSIX systems: /dev/dsp, /dev/null, /dev/zero, /dev/console, /dev/tty, /dev/ttym, /dev/ttyX, /dev/ttySX, /dev/pipe, /dev/port, /dev/ptmx, /dev/mem, /dev/random, and /dev/urandom. Some other POSIX devices, such as /dev/kmem, are planned for development. Cygwin also has several Windows-specific devices: /dev/comX (the serial ports, starting with COM1 which is the same as ttyS0), /dev/conin (Windows CONIN$), /dev/conout (Windows CONOUT$), /dev/clipboard (the Windows clipboard, currently text only), and /dev/windows (the Windows message queue).
更多信息请参见:
http://www.cygwin.com/cygwin-ug-net/using-specialnames.html
|
/dev属于devs包,看看有没有安装。
你也可以用mknod命令手工创建你想要的dev文件,比如/dev/ttyS0就可以这样创建
mkdir /dev
cd /dev
mknod ttyS0 c 4 64
你也可以用mknod命令手工创建你想要的dev文件,比如/dev/ttyS0就可以这样创建
mkdir /dev
cd /dev
mknod ttyS0 c 4 64
|
支持(陈世奎)
顶
顶