LinuxCommandLibrary

dex

Convert Dalvik Executable (dex) to Java class

TLDR

Execute all programs in the autostart folders

$ dex [[-a|--autostart]]
copy

Execute all programs in the specified folders
$ dex [[-a|--autostart]} [[-s|--search-paths]] [path/to/directory1]:[path/to/directory2]:[path/to/directory3]:
copy

Preview the programs would be executed in a GNOME specific autostart
$ dex [[-a|--autostart]} [[-e|--environment]] [GNOME]
copy

Preview the programs would be executed in a regular autostart
$ dex [[-a|--autostart]} [[-d|--dry-run]]
copy

Preview the value of the DesktopEntry property Name
$ dex [[-p|--property]] [Name] [path/to/file.desktop]
copy

Create a DesktopEntry for a program in the current directory
$ dex [[-c|--create]] [path/to/file.desktop]
copy

Execute a single program (with Terminal=true in the desktop file) in the given terminal
$ dex --term [terminal] [path/to/file.desktop]
copy

SYNOPSIS

dex [options] command [arguments]

PARAMETERS

--image
    Specifies the container image to use.

--network
    Sets the network mode for the container (e.g., 'host', 'bridge').

--mount :
    Mounts a host directory into the container.

--name
    Assigns a name to the container.

--rm
    Automatically removes the container after execution.

--env
    Sets an environment variable inside the container.

--help
    Displays help information.

DESCRIPTION

Dex is a command-line tool to execute commands within a Linux container.
It simplifies the process of running applications in isolated environments without the overhead of full virtualization.
Dex uses features like namespaces and cgroups to create lightweight containers, providing a consistent and reproducible environment for your applications.
It is commonly used for development, testing, and deployment scenarios where application isolation is desired. Dex can be useful in setting up ephemeral testing environments to execute commands like unit tests or running command line tools in an isolated, reproducible manner.

CAVEATS

Dex requires container runtime environment to be installed and configured correctly on the host system. Ensure the required permissions are granted to execute container commands.

EXAMPLES

Run a command in a container:
dex --image ubuntu:latest bash -c 'echo Hello from container!'

Mount a host directory:
dex --image ubuntu:latest --mount /host/path:/container/path bash -c 'ls /container/path'

SEE ALSO

docker(1), podman(1), lxc(1)

Copied to clipboard