Thursday, May 23, 2024

Recover the deleted files in Linux

 Reference: https://forums.unraid.net/topic/101686-xfs_undelete-seems-to-be-a-better-way-to-recover-files/


mkdir xfs_undelete

cd xfs_undelete/

wget https://github.com/ianka/xfs_undelete/archive/refs/tags/v12.0.zip -O temp.zip

dnf install tcl

dnf install tcllib


xfs_undelete -t 2024-05-14 -o /root/recover /dev/mapper/ol-root

Wednesday, May 22, 2024

Settings for Live SASS Compiler in Visual Studio

 Add below block into file>preference>settings>user Settings


Settings

"liveSassCompile.settings.formats": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": "/css/apps"
}
],
"liveSassCompile.settings.generateMap": true,
"liveSassCompile.settings.includeItems": [
"/scss/apps/**/*.scss"
],

Friday, May 10, 2024

Increase Space in CentOS 9 with lvm

yum install cloud-utils-growpart -y

 Grow the partition

# growpart /dev/sda 2

Extend lv

#  lvextend -l +100%FREE /dev/ol/root

Grow File System

# xfs_growfs /dev/ol/root