2022-10-17 22:13:45 +01:00
|
|
|
# distrobox-host-exec
|
|
|
|
|
2023-03-19 11:35:00 +00:00
|
|
|
> Execute a command on the host from inside a distrobox container.
|
2023-03-02 16:20:46 +00:00
|
|
|
> Subcommand of `distrobox`. See also: `tldr distrobox`.
|
|
|
|
> More information: <https://distrobox.privatedns.org/usage/distrobox-host-exec.html>.
|
2022-10-17 22:13:45 +01:00
|
|
|
|
2023-03-19 11:35:00 +00:00
|
|
|
- Execute command on the host system from inside the distrobox container:
|
2022-10-17 22:13:45 +01:00
|
|
|
|
|
|
|
`distrobox-host-exec "{{command}}"`
|
|
|
|
|
2023-03-02 16:20:46 +00:00
|
|
|
- Execute the `ls` command on the host system from inside the container:
|
2022-10-17 22:13:45 +01:00
|
|
|
|
|
|
|
`distrobox-host-exec ls`
|