Alias to mount root history
This commit is contained in:
@@ -126,6 +126,12 @@ function dut() {
|
|||||||
sudo du -hax -t"${threshold}G" /* --exclude=/{proc,sys,dev,run}
|
sudo du -hax -t"${threshold}G" /* --exclude=/{proc,sys,dev,run}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mount_old_roots() {
|
||||||
|
sudo mkdir -p /mnt/btrfs-root
|
||||||
|
sudo mount -t btrfs -o subvolid=5 /dev/nvme0n1p2 /mnt/btrfs-root
|
||||||
|
cd /mnt/btrfs-root/old_roots
|
||||||
|
}
|
||||||
|
|
||||||
function gh() {
|
function gh() {
|
||||||
local -a commands=(
|
local -a commands=(
|
||||||
"Recover deleted file: git checkout HEAD -- <file>"
|
"Recover deleted file: git checkout HEAD -- <file>"
|
||||||
|
|||||||
Reference in New Issue
Block a user