LinuxCommandLibrary

distrobox-host-exec

execute host commands from inside Distrobox container

TLDR

Execute command on host from inside container

$ distrobox-host-exec "[command]"
copy
Execute ls on the host
$ distrobox-host-exec ls
copy

SYNOPSIS

distrobox-host-exec [command] [arguments]

DESCRIPTION

distrobox-host-exec executes a command on the host system from inside a Distrobox container. This allows accessing host binaries and tools that aren't available inside the container.
Useful for running host-specific commands like flatpak, snap, or system utilities from within the container environment.

PARAMETERS

command

Command to execute on host
arguments
Arguments to pass to the command

CAVEATS

Only works from inside a Distrobox container. The command must exist on the host system. Environment variables may differ between container and host.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community