Linux command
dbus-monitor 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Monitor session bus
dbus-monitor
Monitor system bus
dbus-monitor --system
Filter by interface
dbus-monitor "interface='[org.freedesktop.Notifications]'"
Monitor specific sender
dbus-monitor "sender='[org.gnome.Shell]'"
Monitor method calls only
dbus-monitor "type='method_call'"
Profile mode
dbus-monitor --profile
说明
dbus-monitor displays D-Bus messages passing through the message bus. It's useful for debugging D-Bus services, understanding inter-process communication, and reverse-engineering application behavior. The tool connects to the bus and becomes an eavesdropper, showing all messages matching the specified filters. Without filters, it shows all messages.
参数
- --system
- Monitor system bus.
- --session
- Monitor session bus (default).
- --address _addr_
- Connect to specific bus address.
- --profile
- Output in profile format.
- --monitor
- Output in monitor format (default).
- --pcap
- Output in pcap format.
FAQ
What is the dbus-monitor command used for?
dbus-monitor displays D-Bus messages passing through the message bus. It's useful for debugging D-Bus services, understanding inter-process communication, and reverse-engineering application behavior. The tool connects to the bus and becomes an eavesdropper, showing all messages matching the specified filters. Without filters, it shows all messages.
How do I run a basic dbus-monitor example?
Run `dbus-monitor` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --system do in dbus-monitor?
Monitor system bus.