File removal on power off |

Trending 2 months ago

I'm utilizing Ubuntu 22.04LTS. I would for illustration to create a files "temp" wherever during my convention I prevention nan files that are, arsenic nan sanction suggest, temporary. How tin I specify a scritp that astatine erstwhile I shutdown nan machine automatically deletes nan contents of this folder?

Ex: I download fewer documents that I request for immoderate tasks but astatine nan extremity of nan time I don't request to support them, frankincense avoiding to accumulate useless files.