Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tmp]

The tag has no usage guidance.

0
votes
1answer
17 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 ...
0
votes
1answer
39 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
12 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
69 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
906 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
63 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
79 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
613 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
239 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 ...
1
vote
1answer
745 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
126 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
291 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
57 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 ...
2
votes
0answers
708 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
1k 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
99 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 ...
1
vote
0answers
842 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
117 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
687 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
63 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
116 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
5k 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
2k 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
2k 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
2k 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
4k 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
944 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
2k 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
186 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
591 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
421 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
2k 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'...
40
votes
3answers
6k 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
355 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
623 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. ...
5
votes
1answer
4k 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?
6
votes
1answer
12k 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,...
4
votes
2answers
4k 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
175 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
1k 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 (...
2
votes
1answer
2k views

Symbolic link not working as expected when changes user

Symbolic link not working, using standard UBUNTU 16 LTS... It shows "Permission denied" where I expected to get access, not working even after chown. Full example: sudo rm /tmp/file.txt # if exist, ...
6
votes
4answers
1k views

Using the /tmp folder for backups, recommended?

Is it safe to put my temporary manual backups of my website codebase and database into the /tmp folder? I'm running Debian 8. I want to leave them there for a couple days. I am not sure if this ...
2
votes
0answers
3k views

-bash: cannot create temp file for here-document: No space left on device

This is not a duplicate of (although related to) bash: cannot create temp file for here-document: No space left on device. My /tmp is getting filled up fast, although my rootfs isn't full and the ...
2
votes
0answers
473 views

Postgres Vulnerability through public schema?

On Debian 8.5, I'm finding weird processes and files in /tmp: file "cool" is owned by root, group=postgres<br> file "Injection.sh", "zeroteam.so", "zteam" Why do those file exist? How can I ...
1
vote
0answers
67 views

Why root lose permission of 1st and 2nd level symlink? [duplicate]

Why root lose permission to run 1st level symlink /bin/planet and 2nd level symlink /tmp/earth, except symlink target /tmp/sun at the end ? Instead ordinary user no problem to run 3 of them: xiaobai@...
3
votes
1answer
424 views

How do I clean out my /tmp directory upon reboot?

I’m using Amazon Linux. Below is the uname info … [davea@mymachine ~]$ uname -a Linux sandbox.mydomain.com 4.4.18-35.99.amzn1.x86_64 #1 SMP Wed Jul 27 22:37:49 UTC 2016 x86_64 x86_64 x86_64 GNU/...
2
votes
1answer
861 views

Is a subdirectory of /tmp a suitable place for Unix sockets?

I am looking for a secure place to put Unix domain sockets that will be used to control a REPL. On Linux, I would use /run/user/$UID, which meets all requirements except for portability. I need the ...
-4
votes
1answer
335 views

permanently change /tmp stickbit to -t

I want to change the stickbit permision of /tmp directory to -t. The problem is every time I reboot the permissions reset to 1777. How can I permanently change the /tmp directory to 0777 ? I have ...
0
votes
1answer
354 views

tmux icon plugins not displaying in status bar

I've installed TPM and am running it last and so on but none of the icons from the icon plugins are displaying correctly, nor do several other things I've added, I don't know what's going on I've ...
2
votes
1answer
4k views

How to change the tmp directory used by a specific service user?

I want to change the temporary directory used by a specific user (jenkins in my case). The problem is that this needs to be in effect for any process running as Jenkins user and changing it in ....