Questions tagged [tmp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
93 views

/tmp messed up, even ls /tmp fails

We are seeing a small cluster become unusable. Initially the same behavior was on a compute node, it is now occuring on the head node. I do not know if this is the underlying source, but for certain ...
0
votes
0answers
26 views

If /tmp is actually an in-memory filesystem, does that mean it can run out of space?

I've heard that on some systems, /tmp is actually an in-memory filesystem. Does that mean that if I have a machine with a 1TB HDD, and 8 GB RAM, and I try to write a 30 GB file to /tmp, this write ...
1
vote
2answers
55 views

Should programs remove temporary files in /tmp?

I have a program which uses temporary files, created using the mkstemps function. The files are created inside the /tmp directory. Does these files get removed automatically on program exit? I'm ...
0
votes
1answer
27 views

location for multi-user script temp file

On our unix webhost, I created a set of scripts for automating the website deploy process. Since I was the only user, I had the scripts keeping track of what phase of the deploy it was in by changing ...
0
votes
0answers
21 views

virt-sparsify: error: libguestfs error: security: cached appliance /tmp is writable by group or other (mode 40777)

I want to virt-sparsify --compress a file, but when I try to do it it says I need more space in /tmp/ I tried to create a directory on a NTFS partition where I have alot of free space and make it tmp ...
2
votes
1answer
46 views

Something is creating thousands of .svg files in /tmp and not deleting them

Apparently for months now, some process has been creating an empty .svg file in /tmp every minute and leaving it there. I now have 43,000 of these 262 byte files accumulated. I could just periodically ...
0
votes
2answers
74 views

Enabling tmpfs on an already installed system

Right now a system uses LVM on LUKS, with only 2 lvm partitions / and /home. If I now want to make use of tmpfs for /tmp and /var/tmp, can I just add the necessary changes to /etc/fstab and it will ...
0
votes
0answers
91 views

buildah: use different directory than /tmp for temporary files

My /tmp directory is too small which results in an error when I try to commit an image via buildah: $ buildah commit $container foo:bar ... error storing layer "42" to file: write /tmp/...
0
votes
0answers
18 views

What might create temporary mountpoints?

I have an Oracle Linux 7.5 Server. Sometimes, a new mount will show up briefly (for less than a minute), then disappear. This new mount point is at /tmp/${GUID}, so it might look like: /tmp/...
0
votes
1answer
115 views

Moving /tmp from ramdisk to other partition

Due to a deficit of RAM on Debian, I need to move /tmp to SSD drive. But I still can't figure it out, how to do that so the programs that use it will still access it under /tmp path. So basically, ...
0
votes
1answer
25 views

How can i create a /tmp partition

i'm trying to intall RHEL Linux Server 7.4 using VMware through a dvd.iso i want to create a partition for the /tmp during the installation, knowing that the graphical interface that permit ...
1
vote
1answer
151 views

How to open a file in the /tmp folder in inkscape?

Some software I use uses inkscape to convert images from one format to another, as an intermediate step. This means that they write images to the /tmp folder, and attempt to use inkscape on those ...
0
votes
0answers
28 views

Linux and TeX's Biber

I have a Linux related issue I run into when I try to create a .tex (and .pdf) file by a php script, see here. It seems tha the utility Biber (to create bibliography) is designed to unpack its ...
0
votes
1answer
834 views

systemctl enable tmp.mount

Consider the practice of mounting the /tmp directory on a tmpfs memory based filesystem, as can be done with: systemctl enable tmp.mount And consider the following: one justification: The use of ...
10
votes
4answers
2k views

Prevent a directory in /tmp from being deleted

I often use the /tmp directory on my Linux machine for storing temporary files (e.g. PDFs from a site that wants me to download it first etc.) and I often create a directory with my username. But at ...
2
votes
1answer
131 views

Stop systemd from cleaning my /tmp

Before the advent of systemd, my /tmp was cleaned when and only when I rebooted my machine. I was happy. Now systemd has changed this decades-old default so that my /tmp is cleaned every 24 hours, ...
0
votes
0answers
208 views

how to take affect the seting on temporary files ( /tmp )

subject - new settings retarding temporary files ( redhat 7.2 ) we set new values on the following configuration files , in order to minimize /tmp capacity in file: /lib/systemd/system/systemd-...
4
votes
2answers
902 views

Linux + files & folders cleanup under /tmp

On all my Red Hat Linux machines version 7.2 we saw that systemd-tmpfiles-clean.service is inactive: systemctl status systemd-tmpfiles-clean.service ● systemd-tmpfiles-clean.service - Cleanup of ...
0
votes
1answer
557 views

Run docker-compose after reboot on RHEL 7

After installing Docker CE and Docker Compose on RHEL 7, I get an error trying to use it: $ docker-compose --version docker-compose: error while loading shared libraries: libz.so.1: failed to map ...
2
votes
1answer
2k views

How to create / delete $XDG_RUNTIME_DIR at login / logoff

Today I was surprised to ssh into my box running Arch Linux and find that /run/user/$(id -u) didn't exist. The XDG Base Directory Specification says: $XDG_RUNTIME_DIR defines the base directory ...
0
votes
1answer
186 views

v option in /usr/lib/tmpfiles.d/tmp.conf

While checking the file /tmp.conf i found option v as v /tmp 1777 root root 10d after while read the manual offline and online in but i didn't find any thing related, is their any manuals related ?
3
votes
2answers
496 views

How to intercept temporary files created by a program? [duplicate]

TL;DR: I know a program creates and then deletes files in /tmp. How can I intercept them for examination ? Context: There's a particular .jar file, which I don't trust; for some reason its source ...
-1
votes
3answers
66 views

Removing directory and it's contents with %Y_%b_%d format

I have created a script which should delete the directories and it's contents older then 2 days. The script is working fine but the directory is not getting deleted. Kindly help, it will be much ...
3
votes
1answer
2k views

How to edit the timer for systemd-tmpfiles-clean?

I'm trying to change the cleanup interval for Apache PrivateTmp files from the default 30 days to 6 hours. I read that to edit the time intervals, I should set up an override file in /etc/tmpfiles.d/...
4
votes
1answer
2k views

When are files from /tmp deleted?

I'd like to investigate when files in /tmp get removed. I run CentOS 7. Policy regarding deleting files from that directory is governed as follows: RHEL7 and RedHat-like with systemd it's ...
1
vote
1answer
160 views

The output of du -sh /tmp is much greater than the sum of du on each file and directory in /tmp. Why? [duplicate]

This system is linux mint 18.3, basically ubuntu. sudo du --apparent-size -sb /tmp yields 476mb on my system currently. if I run sudo du --apparent-size -sb /tmp/* /tmp/.??* and add it all up, I get ...
5
votes
0answers
1k views

Is it possible to change systemd private tmp directory?

I am running some programs on both Debian and Fedora. When I ls the /tmp directory, I see many directories with extremely long name like systemd-private-d85027...-bluetooth.service-qxzMGm systemd-...
1
vote
1answer
289 views

tmp directory for development that gets cleared regularly?

To the best of my knowledge /tmp is cleared on every boot, since it normally uses tmpfs, which basically is RAM. During development of ML applications I often need a tmp directory for debugging and ...
0
votes
1answer
859 views

Ubuntu server 16.04 /tmp directory full

i have /tmp as a directory on my root partition i am running ubuntu 16.04 will creating a symlink for /tmp in my /var folder which have 650 GB of disk space will work for me ? i mean whether the disk ...
1
vote
2answers
77 views

Is there any way to make a folder behave the same as /tmp/?

I have a large folder with a few million files on my external hard drive that I have to delete. Using rm -rf works, but is very slow due to the sheer amount of files, and the size of the folder. ...
0
votes
1answer
230 views

ext4 mounted on / and tmp consuming disk space

I am using an Ubuntu 16.04 LTS. I ran into an unusual problem with my disk usage. Some of my applications were aborted with the message on the terminal stating "not enough disk space available". The ...
1
vote
2answers
8k views

How to view files, created by Linux and programs in /tmp directory? [duplicate]

How to view files, created by Linux and programs in /tmp directory? The file names are hidden, command ls -al /tmp only show the presence of files not their names. Edit: I find that place in saved ...
1
vote
1answer
3k views

How can I increase the /tmp directory on Linux

I am trying to install android-studio from the Arch User Repository (AUR). I had an error no space left on the device Output from the Arch User Repository (AUR) - details ...
-1
votes
2answers
3k views

what will happen if I delete /tmp folder in my “docker container” [closed]

If I deleted /tmp folder completely, what will happen ? will it make any side effects or it will be re-created by os ( if so at re-start or if something needs to be stored in /tmp ) ? In docker ...
1
vote
2answers
3k views

Other reasons for “no space left on device” than fully used folder?

I have a tests that I run on a device which has a 300M of ram-disk based /tmp and I get "no space left on device" even though when I run df -h I find that only 11% of the /tmp is actually used. I am ...
1
vote
2answers
7k views

mktemp: failed to create directory via template Permission denied

At first I wanted to install a package on a server to which I don't have root access. Since I don't have root access I tried to build it myself but I get an error in the configuration stage. Here is ...
2
votes
1answer
2k views

How to extend tmpfs with physical volume?

I'm using 2G of tmpfs for /tmp dir to increase performance for java unit-testing: they are performing IO operations intensively in /tmp.Here is my tmp section from /etc/fstab file: tmpfs /tmp tmpfs ...
4
votes
3answers
3k views

Which filesystem / filesystem option to use for /tmp partition

When using a separate disk partition for /tmp, ie /dev/sda4, what filesystem is most suitable ? ext4 seems inappropriate: I don't need journal, I don't need that lost+found directory there either. ...
1
vote
0answers
260 views

Files (but not directories) lost from tmpfs

For the past few weeks (my system hasn't been rebooted in the meanwhile!) I had a bunch of files temporarily placed in /tmp tmpfs on /tmp type tmpfs (rw,nosuid,nodev) I now decided to move them to ...
0
votes
2answers
829 views

RHEL7 & PHP: File is not uploading (even into /tmp/)

After few days, since I asked this question: LINK I realized, that maybe it's another problem. I used package inotifywait to check, is a temporary file generating after sending html form. ...
1
vote
0answers
516 views

Segmentation Fault in System Directory `/tmp`

When compiling FFmpeg, the configuring failed because of a segmentation fault in exec checking. I posted my problem here, and I solved my problem by exporting a new TMPDIR. What's weird is the ...
3
votes
2answers
3k views

tmpfs does not overflow to swap

I've configured tmp in /etc/fstab like this: tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 2 The problem is that now /tmp is limited to half of the machine's memory, and when it reaches that limit I'...
42
votes
3answers
7k views

is /tmp guaranteed to exist?

Do I need to check & create /tmp before writing to a file inside of it? Assume that no one has run sudo rm -rf /tmp because that's a very rare case
8
votes
1answer
450 views

permissions of symlinks inside /tmp

I have 2 users in my machine: linuxlite and otheruser. otheruser has a file: otheruser@linuxlite:~$ ls -l a -rw-rw-r-- 1 otheruser otheruser 6 Mar 31 12:47 a otheruser@linuxlite:~$ cat a hello ...
0
votes
2answers
902 views

Temporary directory per process

Is there a "standard" temporary directory directory allocated for an individual process which disappears along with the process itself? Something that looks like /proc/$pid/tmp or /proc/self/tmp. ...
6
votes
1answer
8k views

Generic way to get temp path?

I heard about $TEMP and $TMP, but I think they are not standard for every distro. As far as I know, the best way to get the temp dir is just /tmp, is there any distro that won't work using that path?
8
votes
1answer
19k views

Can you remount /tmp partition to exec while live?

I have a server I need to re mount the /tmp partition to run exec. The code I want to use is: mount -o remount,exec /tmp Run the program that needs it. Than change it back. mount -o remount,...
5
votes
2answers
6k views

why php can not see /tmp files

i have simple test.php page: <pre><?php system("ls -la /tmp"); ?></pre> which always shows just: . and .. folders and nothing else in browser. in the command line: 1) ls -la /...
1
vote
1answer
212 views

noexec flag for /tmp (OpenSUSE)

I would harden my OpenSUSE 42.2. If I put noexec flag for /tmp and /var/tmp locations mount, zypper could suffer for this? Possible issues could depend by single package working and needing but above ...
2
votes
1answer
2k views

How to increase size of root?

Here is information regarding my disk space consumption. Command (m for help): p Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (...