Newer
Older
minerva / Base / usr / share / man / man1 / lsof.md
@minerva minerva on 13 Jul 497 bytes Initial commit
## Name

lsof

## Synopsis

```sh
$ lsof [-p pid] [-d fd] [-u login/UID] [-g PGID] [filename]
```

## Description

List open files of a processes. This can mean actual files in the file system, sockets, pipes, etc.

## Options

-   `-p pid`: Select by PID
-   `-d fd`: Select by file descriptor
-   `-u login/UID`: Select by login/UID
-   `-g PGID`: Select by process group ID

## Arguments

-   `filename`: Filename

## See Also

-   [`pmap`(1)](help://man/1/pmap)
-   [`ps`(1)](help://man/1/ps)