Questions tagged [tmp]

90 questions
2
votes
3 answers

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: rmdir "D:\*.tmp" Windows update seems to be…
James Edmonds
  • 1,733
  • 10
  • 37
  • 59
2
votes
2 answers

Increasing the size available to, or changing location of, /tmp

I am currently in charge of a server running Red Hat and a bioinformatics webapp that deals with huge files, some of which are over 100GB when uncompressed. The act of decompressing these files is done by several different programs, all of which use…
DeeDee
  • 333
  • 2
  • 7
  • 16
2
votes
2 answers

Linux tmp-like dir in home folder?

I'd like to make a folder in my GNU/Linux home directory that behaves somewhat like TMPDIR (usually /tmp or /var/tmp); that is, a folder that deletes its contents on reboot or after they've started gathering cobwebs. What's the best way to go about…
Cameron
  • 23
  • 1
  • 3
2
votes
1 answer

What is the most efficient way to handle /tmp and disk quotas on Linux

I'm running a VPS with a webserver (Apache+PHP), a database (MySQL) and smtp server (Exim). OS: Debian Lenny. RAM: 512MB. Using (quota](http://packages.debian.org/lenny/quota). At the moment, I've /tmp mounted as tmpfs. This is not ideal, as I've…
Lekensteyn
  • 6,241
  • 6
  • 39
  • 55
2
votes
0 answers

Why are tmp files in /var/tmp/systemd-private-* excluded from automatic deletion?

I'm running a CGI application on an Apache instance, and lately I've been noticing errors like the following, which appear to be causing some issues: ERR012: Unable to create temporary file "/var/tmp/023711.000001.tmp": File exists (This is the…
DMJ
  • 171
  • 1
  • 6
2
votes
1 answer

Is it all right to just delete /tmp/* and all the apache logs files (access.log, error.log)?

They are just taking too much disk space, is it safe to delete them? Is there anything I have to take special care of when I set up a crontab job to do the deletion routinely? Thanks!
datasn.io
  • 279
  • 1
  • 5
  • 16
2
votes
1 answer

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 echo 'ok' | sudo tee /tmp/dummy tee: /tmp/dummy:…
Stephane
  • 227
  • 3
  • 12
1
vote
1 answer

How to prevent tmpfs /tmp causing machine to run out of memory?

I have a virtual server (Debian 8.5, OpenVZ) that seems to run out of memory* when tmpfs-based /tmp is about 60% full. (* while the system reports 2GB of memory still free, processes start to behave erratically, /tmp writes fail with ENOSPC, forking…
Kornel
  • 1,105
  • 1
  • 11
  • 16
1
vote
1 answer

Can't create/write to file '/mnt/temp/something' (Errcode: 13)

I changed the tmp directory of the mysql configuration to a mounted disk and on service mysql restart I get following error: Can't create/write to file '/mnt/temp/something' (Errcode: 13) To my understanding, Error Code 13 refers to file permission…
Ut xD
  • 238
  • 1
  • 5
  • 13
1
vote
1 answer

Suspicious Linux binary file in /tmp/ - Munin?

I have a CENTOS 6.6 x86_64 server running ConfigServer Firewall (installed by us) and Munin (installed by the datacentre). CSF has recently (and for no apparent reason) started sending us warnings, at 5 minutes past the hour, about a suspicious file…
JamesG
  • 115
  • 6
1
vote
1 answer

Re-ocurring issue with keys on temp tables

We run a large forum with lots of reads and writes, particularly to the posts and topics tables which are both innodb. Last week I started doing 12 hourly backups with innobackupex because mysqldump just takes forever (7+ million rows in posts…
Christian
  • 789
  • 1
  • 13
  • 31
1
vote
1 answer

Temporary file security threat?

We use CentOS. We've been hacked and trying to figure out why. Looking at the /tmp folder I'm wondering if these are security threats: -rw-rw---- 1 mysql mysql 11665408 Apr 3 18:59 #sql_6bc_0.MYD -rw-rw---- 1 mysql mysql 1024 Apr …
1
vote
1 answer

Will changes to periodic.conf file be picked-up by the system automatically?

I have made some changes to my /etc/defaults/periodic.conf file to change how it cleans the /tmp dir. Do I need to do anything else such as log-out or reboot to get the system (Mac OS 10.8.4) to see the changes or will the new file changes…
daustin777
  • 123
  • 1
  • 5
1
vote
5 answers

fopen() failing to open a file on /tmp share

I have a C application that occasionally fails to open a file which is stored on a /tmp share. Here is the relevant chunk of code: // open file and start parsing notStdin = strcmp(inFile, "-"); if (notStdin) { coordsIn = fopen(inFile,…
Alex Reynolds
  • 453
  • 2
  • 9
  • 22
1
vote
1 answer

tmpwatch not deleting folders and mp3 files in /tmp

I have a process which moves files from our EC2 server to s3, we're not sure why but it stores them in /tmp whilst moving them, but for some reason it also leaves them there once the process has completed. This would be fine if tmpwatch deleted…
Danny Shepherd
  • 177
  • 1
  • 12