Remove from tmp?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
edwin1234
Posts: 330
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Remove from tmp?

Post by edwin1234 »

What can i delete from /tmp without problems?
My camscript doesnt work any more because it cant save screenshots to /tmp because theres not enough disk space
Domoticz is installed on a raspberry pi
Please help
Im a noob in this stuff

Thanks
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Remove from tmp?

Post by waaren »

edwin1234 wrote: Monday 02 July 2018 13:27 What can i delete from /tmp without problems?
My camscript doesnt work any more because it cant save screenshots to /tmp because theres not enough disk space
Domoticz is installed on a raspberry pi
Please help
Im a noob in this stuff

Thanks
/tmp is the directory where processes can store their temp files. So you can remove all files that are created by processes no longer active.
On most linux systems user files and directory's will be removed from the /tmp directory during a reboot
commands you can use to delete old files from /tmp

tmpdir="/tmp"
sudo find $tmpdir/* -mtime +7 -exec ls -l {} \; # list all files with a modification date of 7 days ago and earlier in /tmp dir
sudo find $tmpdir/* -mtime +7 -exec rm {} \; # remove all files with a modification date of 7 days ago and earlier in /tmp dir
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
edwin1234
Posts: 330
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: Remove from tmp?

Post by edwin1234 »

Thanks
Gonna try that
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest