diff --git a/tldr/linux/systemctl-switch-root b/tldr/linux/systemctl-switch-root new file mode 100644 index 00000000..c3a8fc25 --- /dev/null +++ b/tldr/linux/systemctl-switch-root @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl switch-root + +> Switch to a new root filesystem and execute a new system manager. +> More information: . + +- Switch to a new root filesystem and execute its default init system: + +`systemctl switch-root {{path/to/new_root}}` + +- Switch to a new root filesystem and run a specific init binary: + +`systemctl switch-root {{path/to/new_root}} {{/sbin/init}}` + +- Switch to a new root filesystem with verbose output: + +`systemctl --verbose switch-root {{path/to/new_root}}`