Skip to content

Instantly share code, notes, and snippets.

@ChinaXing
Last active November 16, 2018 06:27
Show Gist options
  • Select an option

  • Save ChinaXing/6c00388eb6b37df06b5aa0a5792f9752 to your computer and use it in GitHub Desktop.

Select an option

Save ChinaXing/6c00388eb6b37df06b5aa0a5792f9752 to your computer and use it in GitHub Desktop.

Revisions

  1. ChinaXing revised this gist Nov 16, 2018. 2 changed files with 8 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions ps-tools
    Original file line number Diff line number Diff line change
    @@ -1,2 +0,0 @@
    ## show pid namespace all threads of process 21503
    ps axH -opid,ppid,pidns -p 21503
    8 changes: 8 additions & 0 deletions ps-tools.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    ## show pid namespace all threads of process 21503
    ps axH -opid,ppid,pidns -p 21503

    ## list namespace of process 21503
    lsns -p 21503

    ## list namespace inode of process 21503
    ls -iL /proc/21503/ns/pid
  2. ChinaXing created this gist Nov 16, 2018.
    2 changes: 2 additions & 0 deletions ps-tools
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    ## show pid namespace all threads of process 21503
    ps axH -opid,ppid,pidns -p 21503