Forrest logo
tool overview
On this page you find all important commands for the CLI tool busctl. If the command you are looking for is missing please ask our AI.

busctl

Busctl is a command-line tool in Linux used for monitoring and controlling the D-Bus system bus. It allows users to interact with the bus and explore various aspects of the bus and its connected services.

  1. With busctl, users can view the list of available bus names and their corresponding processes.
  2. It provides an overview of bus objects, interfaces, and properties for each service running on the system bus.
  3. Users can use busctl to introspect remote processes and obtain information about the supported interfaces and methods.
  4. It offers options to watch for signals emitted by specific objects or interfaces, keeping track of events in real-time.
  5. Users can query and manipulate bus units, including enabling or disabling services and checking their status.
  6. Busctl provides various commands such as "call" to invoke remote methods on D-Bus services.
  7. It allows users to call methods with specific input parameters and receive output from the remote service.
  8. Users can also monitor the message bus and track sent and received messages between different processes.
  9. Busctl supports examining and modifying the security policies associated with D-Bus services.
  10. It provides a comprehensive and powerful interface for managing and interacting with the D-Bus system bus in a command-line environment.

List of commands for busctl:

  • busctl:tldr:02b48 busctl: Dump messages being exchanged. If no service is specified, show all messages on the bus.
    $ busctl monitor ${service1 service2 ---}
    try on your machine
    explain this command
  • busctl:tldr:94948 busctl: Show an object tree of one or more services (or all services if no service is specified).
    $ busctl tree ${service1 service2 ---}
    try on your machine
    explain this command
  • busctl:tldr:9e546 busctl: Show interfaces, methods, properties and signals of the specified object on the specified service.
    $ busctl introspect ${service} ${path-to-object}
    try on your machine
    explain this command
  • busctl:tldr:b20f0 busctl: Retrieve the current value of one or more object properties.
    $ busctl get-property ${service} ${path-to-object} ${interface_name} ${property_name}
    try on your machine
    explain this command
  • busctl:tldr:bdbdd busctl: Invoke a method and show the response.
    $ busctl call ${service} ${path-to-object} ${interface_name} ${method_name}
    try on your machine
    explain this command
  • busctl:tldr:e0a68 busctl: Show process information and credentials of a bus service, a process, or the owner of the bus (if no parameter is specified).
    $ busctl status ${select}
    try on your machine
    explain this command
  • busctl:tldr:e5722 busctl: Show all peers on the bus, by their service names.
    $ busctl list
    try on your machine
    explain this command
tool overview