mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
15 lines
132 B
Bash
15 lines
132 B
Bash
#!/usr/bin/env bash
|
|
|
|
# testing lsof with file descriptors
|
|
|
|
exec 3> test
|
|
exec 6> test
|
|
exec 7< test
|
|
|
|
lsof -a -p $$ -d0,1,2,3,6,7
|
|
|
|
|
|
|
|
|
|
|