2022-10-17 22:13:45 +01:00
|
|
|
# distrobox-host-exec
|
|
|
|
|
|
|
|
> Execute a command on host while 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-02 16:20:46 +00:00
|
|
|
- Execute command on the host system from inside the 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`
|