Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: mardiyah on 21 April 2023, 14:42:50

Title: Go into chroot, keep Bash behavior settings intact
Post by: mardiyah on 21 April 2023, 14:42:50
How to get into chroot while keep Bash behavior settings, and important tools else, fully intact at once
Title: Re: Go into chroot, keep Bash behavior settings intact
Post by: ####### on 22 April 2023, 03:28:22
If Bash is installed in the system you are chrooting into you can simply type # bash after entering the chroot shell and it will open a bash shell, the same applies for zsh, fish and so on. The bash-completion package can be useful, if not installed the behaviour can be a bit different.
You can also go directly to your preferred shell using artix-chroot, found in the artools-base package:
Code: [Select]
$ artix-chroot --help
usage: artix-chroot chroot-dir [command]
    -h             Print this help message

    If 'command' is unspecified, artix-chroot will launch /bin/sh.
Title: Re: Go into chroot, keep Bash behavior settings intact
Post by: mardiyah on 23 April 2023, 04:44:51
nothing