Load a fakeroot environment and run a command as fakeroot

fakeroot

  • Run a command in an environment faking root privileges for file manipulation.
    More information: <https://manpages.debian.org/latest/fakeroot/fakeroot.1.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

fakeroot -i {{path/to/file}} -- {{command}} {{command_arguments}}

click the source code to copy install fakeroot on any operating system with command-not-found.com