首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在lsof中设备场代表什么?

在lsof中设备场代表什么?
EN

Unix & Linux用户
提问于 2017-07-14 08:35:14
回答 1查看 7.9K关注 0票数 6

以下是lsof -i tcp:XXXXXX的简短输出:

代码语言:javascript
复制
COMMAND PID  USER FD TYPE DEVICE
python3 9336 root 3u IPv4 3545328
python3 9336 root 5u IPv4 3545374
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2017-07-14 12:18:37

代码语言:javascript
复制
$ man 8 lsof | grep -A 10 '^\s\{7\}DEVICE'
   DEVICE     contains the device numbers, separated by commas, for a character special, block special, regular, directory or NFS file;

              or ``memory'' for a memory file system node under Tru64 UNIX;

              or the address of the private data area of a Solaris socket stream;

              or a kernel reference address that identifies the file (The kernel reference address may be used for FIFO's, for example.);

              or the base address or device name of a Linux AX.25 socket device.

              Usually only the lower thirty two bits of Tru64 UNIX kernel addresses are displayed.

或类型

man 8 lsof

内部人,你可以搜索与/。而不是直接输入没有空格的正则表达式。在您的例子中,^\s*DEVICE和您将跳到DEVICE

票数 3
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/378415

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档