Questions tagged [tmp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
229 votes
8 answers
269k views

When does /tmp get cleared?

I'm taking to putting various files in /tmp, and I wondered about the rules on deleting them? I'm imagining it's different for different distributions, and I'm particularly interested in Ubuntu and ...
John Lawrence Aspden's user avatar
19 votes
8 answers
140k views

How to change default /tmp to /home/user/tmp

Is there an environment variable to set the temporary directory on debian based systems? I have a java applet that uses that environement variable and it's getting confused when launching two ...
Disco's user avatar
  • 1,451
8 votes
1 answer
33k views

Boot stuck at "A start job is running for Create Volatile Files and Directories"

I think something generated millions of files or folders in my /tmp on Ubuntu 18.04, as I'm unable to run ls /tmp or even rm -rf /tmp/*. So I tried rebooting, but now my machine's stuck at the step: ...
Cerin's user avatar
  • 3,650
3 votes
1 answer
4k views

Does Ubuntu Server have any sort of cron job to automatically clear /tmp?

I know it clears out /tmp on reboots, but I haven't been able to find any sort of cron job on my server that clears /tmp. I recently set up a script that writes lots of files to /tmp and my server ...
DWilliams's user avatar
  • 973
2 votes
1 answer
5k views

Why even my root user cannot write in the /tmp directory?

I cannot write in the /tmp directory. This as a non root user: europasprak@vps-xxxxxxxx:~$ echo 'ok' > /tmp/dummy -bash: /tmp/dummy: Operation not permitted and europasprak@vps-xxxxxxxx:~$ sudo ...
Stephane's user avatar
  • 227
2 votes
1 answer
4k views

lsof shows tmp growing file marked as deleted

I have a cron that generated a lot (15GB) of PHP warnings and was writing them in a log file. I killed the process and as a temporary measure I stopped redirecting stderr to stdout so I don't fill up ...
rwms's user avatar
  • 155
2 votes
3 answers
15k views

delete all folders with tmp in name using batch file

Have tried to google this, but I always seem to get results relating to .tmp files, which isnt really any use. I have only a basic understanding of batch files, but I think I need something like this:...
James Edmonds's user avatar
1 vote
4 answers
2k views

Cleanup of /tmp

What mechanism controls how often/when the /tmp directory is cleaned up. If there is such built-in mechanism at all or do I need to resort to a custom cron? I'd appreciate either a specific command/...
Sergey G's user avatar
  • 485