博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
命令行列出所有文件_从命令行列出USB设备
阅读量:2514 次
发布时间:2019-05-11

本文共 1973 字,大约阅读时间需要 6 分钟。

命令行列出所有文件

I was recently with my 5 year old son and it was an awesome experience; I saw the excitement and curiosity in his eyes while helping him put together a video game machine. We added NES, SNES, and Nintendo 64 games to the device but it became apparent that the N64 controller needed its buttons reconfigured in a config file. To do so I needed to know the device's USB name.

我最近和我5岁的儿子一起 ,这真是一个很棒的经历。 在帮助他组装一台视频游戏机的同时,我看到了他激动和好奇的眼神。 我们在设备中添加了NES,SNES和Nintendo 64游戏,但是很明显N64控制器需要在配置文件中重新配置其按钮。 为此,我需要知道设备的USB名称。

You can use the following command line execution to get the listing of connected USB devices:

您可以使用以下命令行执行来获取已连接的USB设备的列表:

system_profiler SPUSBDataType# >>USB:    USB 3.0 Bus:      Host Controller Driver: AppleUSBXHCISPTLP      PCI Device ID: 0x9d2f      PCI Revision ID: 0x0021      PCI Vendor ID: 0x8086        Generic   USB  Joystick  :          Product ID: 0x0006          Vendor ID: 0x0079          Version: 1.07          Speed: Up to 1.5 Mb/sec          Manufacturer: DragonRise Inc.          Location ID: 0x14400000 / 2          Current Available (mA): 500          Current Required (mA): 500          Extra Operating Current (mA): 0        iBridge:          Product ID: 0x8600          Vendor ID: 0x05ac (Apple Inc.)          Version: 1.01          Manufacturer: Apple Inc.          Location ID: 0x14100000    USB 3.1 Bus:      Host Controller Driver: AppleUSBXHCIAR      PCI Device ID: 0x15d4      PCI Revision ID: 0x0002      PCI Vendor ID: 0x8086      Bus Number: 0x00    USB 3.1 Bus:      Host Controller Driver: AppleUSBXHCIAR      PCI Device ID: 0x15d4      PCI Revision ID: 0x0002      PCI Vendor ID: 0x8086      Bus Number: 0x01

There are methods of viewing connected USB devices via an operating system UI but knowing how to quickly get that information via command line. It's also much easier to copy and paste that data if you need to pass it on!

有一些方法可以通过操作系统UI查看连接的USB设备,但是知道如何通过命令行快速获取该信息。 如果您需要传递数据,则复制和粘贴数据也将更加容易!

翻译自:

命令行列出所有文件

转载地址:http://bkvwd.baihongyu.com/

你可能感兴趣的文章
opacity半透明兼容ie8。。。。ie8半透明
查看>>
CDOJ_24 八球胜负
查看>>
Alpha 冲刺 (7/10)
查看>>
一款jQuery打造的具有多功能切换的幻灯片特效
查看>>
SNMP从入门到开发:进阶篇
查看>>
@ServletComponentScan ,@ComponentScan,@Configuration 解析
查看>>
unity3d 射弹基础案例代码分析
查看>>
thinksns 分页数据
查看>>
os模块
查看>>
LINQ to SQL vs. NHibernate
查看>>
基于Angular5和WebAPI的增删改查(一)
查看>>
windows 10 & Office 2016 安装
查看>>
最短路径(SP)问题相关算法与模板
查看>>
js算法之最常用的排序
查看>>
Python——交互式图形编程
查看>>
经典排序——希尔排序
查看>>
团队编程项目作业2-团队编程项目代码设计规范
查看>>
英特尔公司将停止910GL、915GL和915PL芯片组的生产
查看>>
团队编程项目作业2-团队编程项目开发环境搭建过程
查看>>
Stax解析XML示例代码
查看>>