Data recovery in Linux can be challenging for several reasons. One major reason is that Linux does not have a built-in trash bin or recycle bin for the terminal, so files deleted with the rm command are permanently removed.
Linux also uses inodes to store file information, such as permissions, dates, and content block pointers. If the inode of a file is damaged or overwritten, the file data becomes inaccessible or corrupted.
Another aspect of difficulty when recovering data in Linux is that Linux supports many different filesystems, each with its own structure and features. Some filesystems may have more advanced tools for data recovery than others, but they may also have more complex issues to deal with.
When data loss is experienced in a Linux system, the only true recommended way to recover files will be to restore from your most recent healthy backup.