On Tue, 22 Oct 2024, Van Ly wrote:

In homedir/.cache directory, the web browser will leave ½Gb data files.
[...]
Is there anything I can do to suggest the system use RAM and not laptop
disk storage for cache objects?


Assuming /tmp is mounted on a tmpfs, you can just set XDG_CACHE_HOME for the
browser.

```
D="/tmp/.$(id -nu)-cache"
test -d "$D" || install -d -m 700 "$D"
env XDG_CACHE_HOME="$D" firefox ...
```

-RVP

Reply via email to