1DISTROBOX-HOST-EXEC(1) User Manual DISTROBOX-HOST-EXEC(1)
2
3
4
6 distrobox-host-exec
7
9 distrobox-host-exec lets one execute command on the host, while inside
10 of a container.
11
12 Under the hood, distrobox-host-exec uses host-spawn a project that
13 let’s us execute commands back on the host. If the tool is not found
14 the user will be prompted to install it.
15
17 Just pass to “distrobox-host-exec” any command and all its arguments,
18 if any.
19
20 distrobox-host-exec [command [arguments]]
21
22 --help/-h: show this message
23 --verbose/-v: show more verbosity
24 --version/-V: show version
25
26 If no command is provided, it will execute “$SHELL”.
27
28 Alternatively, use symlinks to make distrobox-host-exec execute as that
29 command:
30
31 ~$: ln -s /usr/bin/distrobox-host-exec /usr/local/bin/podman
32 ~$: ls -l /usr/local/bin/podman
33 lrwxrwxrwx. 1 root root 51 Jul 11 19:26 /usr/local/bin/podman -> /usr/bin/distrobox-host-exec
34 ~$: podman version
35 ...this is executed on host...
36
38 distrobox-host-exec ls
39 distrobox-host-exec bash -l
40 distrobox-host-exec flatpak run org.mozilla.firefox
41 distrobox-host-exec podman ps -a
42
43
44
45Distrobox Dec 2022 DISTROBOX-HOST-EXEC(1)