1.0.2 • Published 2 years ago

nv-cli-linux-lsof v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

nv-cli-linux-lsof

  • nv-cli-linux-lsof
  • simple cli tool, same as "lsof -i:port", with proc-chain detail info

install

  • npm install nv-cli-linux-lsof -g

usage

example

    nv-cli-linux-lsof#  nv_cli_lnx_lsof -p 53
    [
      [
        [
          [ 0, 1, 908 ],
          [
            undefined,
            '/lib/systemd/systemd',
            '/lib/systemd/systemd-resolved'
          ]
        ]
      ],
      [
        {
          COMMAND: 'systemd-r',
          PID: 908,
          USER: 'systemd-resolve',
          FD: '12u',
          TYPE: 'IPv4',
          DEVICE: 24562,
          'SIZE/OFF': '0t0',
          NODE: 'UDP',
          NAME: 'localhost:domain'
        },
        {
          COMMAND: 'systemd-r',
          PID: 908,
          USER: 'systemd-resolve',
          FD: '13u',
          TYPE: 'IPv4',
          DEVICE: 24563,
          'SIZE/OFF': '0t0',
          NODE: 'TCP',
          NAME: 'localhost:domain'
        }
      ]
    ]

APIS

    > x
    {
      sshow: [Function: sshow],
      ashow: [AsyncFunction: ashow]
    }
    >

LICENSE

  • ISC