• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

bpftool Command Examples in Linux

by admin

bpftool is a command-line utility in Linux that is used to manage and manipulate BPF (Berkeley Packet Filter) programs and maps. BPF is a powerful and flexible feature in the Linux kernel that allows you to apply custom filters to network traffic and perform various actions based on the contents of the packets.

Once bpftool is installed, you can use it to manage and manipulate BPF programs and maps on your system. To list all the BPF programs and maps on your system, you can use the following command:

# bpftool prog list
# bpftool map list

These commands will display a list of all the BPF programs and maps on your system, respectively.

bpftool Command Examples

1. List information about loaded `eBPF` programs:

# bpftool prog list

2. List `eBPF` program attachments in the kernel networking subsystem:

# bpftool net list

3. List all active links:

# bpftool link list

4. List all `raw_tracepoint`, `tracepoint`, `kprobe` attachments in the system:

# bpftool perf list

5. List `BPF Type Format (BTF)` data:

# bpftool btf list

6. List information about loaded maps:

# bpftool map list

7. Probe a network device “eth0” for supported `eBPF` features:

# bpftool feature probe dev eth0

8. Run commands in batch mode from a file:

# bpftool batch file myfile

Filed Under: Linux

Some more articles you might also be interested in …

  1. hdparm: command not found
  2. apt Command Examples in Linux
  3. “git-imgerge” Command Examples
  4. How to uninstall ssh software package from Ubuntu
  5. CentOS / RHEL 7 : How to set default target (default runlevel)
  6. exa: A modern replacement for ls (List directory contents)
  7. mate-search-tool: command not found
  8. pacstrap: command not found
  9. lsscsi: command not found
  10. How to Create/Format/Extend Virtual Data Optimizer(VDO) Volumes using Cockpit Web Console in CentOS/RHEL 8

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright