Forrest logo
back to the bpftool tool

bpftool:tldr:b3d23

bpftool: List all active links.
$ bpftool link list
try on your machine

The command "bpftool link list" is used to list all the available BPF (Berkeley Packet Filter) links currently present in the system. BPF is a technology in Linux that allows efficient packet filtering and system call tracing.

Here is what each part of the command means:

  • "bpftool" is the command-line tool used to interact with the BPF subsystem in the Linux kernel.
  • "link" specifies the BPF link command, which is used to manage BPF links.
  • "list" is the specific option or sub-command that is used to retrieve and display a list of all the BPF links present in the system.

When you run the "bpftool link list" command, it will query the kernel for a list of all the BPF links that have been created and currently exist in the system. It will usually provide information such as the link index, type, and attached programs.

This command is useful for administrators and developers who want to view the active BPF links on their system and gather information about the existing filters and programs associated with them.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the bpftool tool