Page 1 of 1
Remove from tmp?
Posted: Monday 02 July 2018 13:27
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
Re: Remove from tmp?
Posted: Monday 02 July 2018 15:00
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
Re: Remove from tmp?
Posted: Monday 02 July 2018 15:09
by edwin1234
Thanks
Gonna try that