#### Beyond Linux® From Scratch (systemd Edition) - Version 10.1

### Chapter 11. General Utilities

- Prev

  ISO Codes-4.5.0

- Next

  pinentry-1.1.1

- Up
- Home

# lsof-4.91

## Introduction to lsof

The lsof package is useful to LiSt Open Files for a given running application or process.

This package is known to build and work properly using an LFS-10.1 platform.

### Package Information

- Download (FTP): https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.91.tar.gz

- Download MD5 sum: 10e1353aa4bf2fd5bbed65db9ef6fd47

- Download size: 1.1 MB

- Estimated disk space required: 9.6 MB

- Estimated build time: less than 0.1 SBU

### lsof Dependencies

#### Required

libtirpc-1.3.1

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/lsof

## Installation of lsof

The contents of the lsof tarball include another tarball with the source code, which needs, in turn, to be unpacked. Install lsof by running the following commands:

    tar -xf lsof_4.91_src.tar  &&
    cd lsof_4.91_src           &&
    ./Configure -n linux       &&
    make CFGL="-L./lib -ltirpc"

This package does not come with a working test suite.

Now, as the `root` user:

    install -v -m0755 -o root -g root lsof /usr/bin &&
    install -v lsof.8 /usr/share/man/man8

## Command Explanations

./Configure -n linux: Avoid AFS, customization, and inventory checks, and use the linux dialect.

make CFGL="-L./lib -ltirpc": Add the libtirpc libraries location to the make command.

## Contents

Installed Program: lsof
Installed Libraries: None
Installed Directories: None

### Short Descriptions

lsof | lists open files for running processes

Last updated on 2021-02-20 11:35:58 -0800

- Prev

  ISO Codes-4.5.0

- Next

  pinentry-1.1.1

- Up
- Home