Remove from tmp?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
edwin1234
Posts: 108
Joined: Sunday 09 October 2016 20:20
Target OS: Windows
Domoticz version:
Contact:

Remove from tmp?

Post by edwin1234 » 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

User avatar
waaren
Posts: 1239
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Remove from tmp?

Post by waaren » Monday 02 July 2018 15:00

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
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

edwin1234
Posts: 108
Joined: Sunday 09 October 2016 20:20
Target OS: Windows
Domoticz version:
Contact:

Re: Remove from tmp?

Post by edwin1234 » Monday 02 July 2018 15:09

Thanks
Gonna try that

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests