tldr/pages/linux/distrobox-enter.md

18 lines
700 B
Markdown
Raw Normal View History

2022-01-22 19:28:05 +00:00
# distrobox-enter
2023-03-02 16:20:46 +00:00
> Enter a distrobox container. See also: `tldr distrobox`.
> Default command executed is your SHELL, but you can specify different shells or entire commands to execute. If used inside a script, an application, or a service, you can use the `--headless` mode to disable the tty and interactivity.
2023-03-02 16:20:46 +00:00
> More information: <https://distrobox.privatedns.org/usage/distrobox-enter.html>.
2023-03-02 16:20:46 +00:00
- Enter a distrobox container:
`distrobox-enter {{container_name}}`
2022-01-22 19:28:05 +00:00
- Enter a distrobox container and run a command at login:
2022-01-22 19:28:05 +00:00
`distrobox-enter {{container_name}} -- {{sh -l}}`
2022-01-22 19:28:05 +00:00
- Enter a distrobox container without instantiating a tty:
2022-01-22 19:28:05 +00:00
`distrobox-enter --name {{container_name}} -- {{uptime -p}}`