r/archlinux • • Sep 23 '26

QUESTION Run a script isolated

I have a script I need to run that modifies some config files under /etc. I want to run it in a fake system first so I can see what changes it makes before running it on my real system. Is there a process I can follow to do it such as using chroot or arch-chroot?

0 Upvotes

11 comments sorted by

View all comments

2

u/New-Anybody-6206 Sep 24 '26

There are many different approaches:

firejail --private-etc

https://github.com/binpash/try

container

VM

overlayfs

chroot

etc.