Score:-1

How to locate trash directory containing files deleted from php application on ubuntu

ke flag

Need to locate the trash directory where deleted files from a php application are stored.

Can anyone help with the trash directory on an ubuntu server machine online?

Knud Larsen avatar
by flag
Trash : `/home/[name]/.local/share/Trash/` . ............... But if files are deleted, they are not "stored".
in flag
If the PHP application is using `unlink()` to delete files, then there is no *simple* means of recovery. If the PHP application is temporarily moving the files to a different location (like NextCloud does) before deleting at a later date, then you will need to check the source code to determine where in the application directory files are placed.
user535733 avatar
cn flag
The question seems unanswerable since any answer is application-dependent...we don't know which application you are looking at. Ubuntu Server has no systemwide nor user-level Trash directory. Deleted files are simply gone (subject to uncertain and laborious data recovery)
Score:1
cn flag

There isn't one. Deleted files are gone. If you want them back you'll have to restore them from your backup.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.