为什么我的cygwin下没有/dev目录?也没有/dev/ttyS0?

ydogg 2006-05-16 02:29:50
请指教,谢谢!
...全文
727 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ydogg 2006-06-20
  • 打赏
  • 举报
回复
谢谢各位,稍后给分
ydogg 2006-06-12
  • 打赏
  • 举报
回复
再次求教
eqxu 2006-06-12
  • 打赏
  • 举报
回复
支持(陈世奎)


  • 打赏
  • 举报
回复
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
x86 2006-06-12
  • 打赏
  • 举报
回复
/dev属于devs包,看看有没有安装。
你也可以用mknod命令手工创建你想要的dev文件,比如/dev/ttyS0就可以这样创建
mkdir /dev
cd /dev
mknod ttyS0 c 4 64

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧