mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 09:50:35 +00:00
Update cheatsheets
This commit is contained in:
18
tldr/linux/pivot_root
Normal file
18
tldr/linux/pivot_root
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pivot_root
|
||||
|
||||
> Change the root filesystem to a new directory and move the current root to a subdirectory of the new root.
|
||||
> Commonly used during system initialization (e.g., in `initramfs`) to switch from a temporary root to the real root filesystem.
|
||||
> More information: <https://manned.org/pivot_root.8>.
|
||||
|
||||
- Make `/new_root` the new root (`/`) and move current root to a subdirectory of it:
|
||||
|
||||
`sudo pivot_root {{path/to/new_root}} {{path/to/new_root/old_root}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pivot_root {{[-h|--help]}}`
|
||||
Reference in New Issue
Block a user