File: paper

package info (click to toggle)
lsof 4.93.2%2Bdfsg-1.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 5,936 kB
  • sloc: ansic: 75,924; sh: 12,859; makefile: 1,686; perl: 1,146; awk: 214
file content (43 lines) | stat: -rw-r--r-- 696 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

			Topics for lsof Paper

Why?
	To look at open files with a consistent output interface,
	both readable and program-parsable, across many Unix dialects

How?
	How variants:
		/dev/kmem
			Problems caused by dynamics
				Get proc structures in tight loop
			KERNELBASE
		/proc
		syssgi/sysi86
		getproc/getuser
		pstat
	How problems
		Authorization
			/proc
		Swapped users
	Filters
		Built-in
		External (Field Output)
	Porting
		Special purpose additions -- i.e., -X

Uses and Examples
	Watching ftp/rlogin transfers
		My lsofwho script
	Searching for TCP/IP listeners
	Watching a tape drive

The Lsof Data Source
	Field output
	Terminators

Lsof Alternatives
	crash
	ff
	fuser
	fstat
	ofiles