Questions tagged [tmp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

what's root cause of "A start job is running for Create Volatile Files and Directories"

Stuck at "A start job is running for Create Volatile Files and Directories" after reboot a server(Debian 9.5, 64bit), and solve by this "boot-stuck-at-a-start-job-is-running-for-create-...
user avatar
  • 121
0 votes
0 answers
83 views

When to clean up /var/tmp?

/var/tmp is not defined in POSIX, but is defined in FHS: 5.15. /var/tmp : Temporary files preserved between system reboots 5.15.1. Purpose The /var/tmp directory is made available for programs that ...
user avatar
  • 3,573
0 votes
1 answer
28 views

Why is Supervisord configured to exec/run in the tmp folder by default?

I've got a question regarding supervisord. After running echo_supervisord_conf, I noticed that the directory it runs in is configured as /tmp by default. Why is this the case? Is it because the /tmp ...
user avatar
4 votes
2 answers
194 views

Should TMPDIR have a trailing slash?

In Unix/POSIX/Linux systems it's possible to set the temporary directory via the TMPDIR variable. Wikipedia references a specification by the Open Group mentioning this. What this doesn't answer for ...
user avatar
  • 81
0 votes
1 answer
877 views

Permission denied in /tmp

/tmp folder has all permission: drwxrwxrwt 28 root root 20480 Jan 24 03:14 /tmp File /tmp/test.txt already exists, with permission 666, owned by user test1. -rw-rw-rw- 1 test1 test1 0 Jan 24 02:34 /...
user avatar
  • 33
2 votes
1 answer
106 views

How is /tmp linked to /var/tmp

I've already read up on the differences between /tmp and /var/tmp, so note that this is not what this question is about. When I create a file in /tmp, it shows up in /var/tmp; however, neither ...
user avatar
2 votes
1 answer
223 views

Where can users create temporary files safely?

Once /tmp ideally should be reserved for the system, where can a user create temporary files safely?
user avatar
1 vote
0 answers
33 views

How to tar-gzip a directory and put it in the /tmp

Hey im stuck on a assignment and i dont know how to solve it really because iam quite new with working in linux. I have to place a directory in a tar-ball and zip it using gzip. At the moment this is ...
user avatar
0 votes
1 answer
115 views

Can I safely detete the contents of /var/tmp (flatpak items)?

Today I'm trying to save some valuable space on my system disk and I might have a real newbie question: Can I safely detete the contents of /var/tmp (flatpak items)? $ sudo du -sh /var/tmp 1.5G /...
user avatar
0 votes
1 answer
213 views

How can I increase the size of /tmp directory without affecting RAM or anything else? (Redhat 8.2)

I'm new at Linux and I will get use of your help guys on this.. I want to increase the size of /tmp directory without affecting RAM or anything else on Red Hat 8.2 .. any suggestions to do that? ...
user avatar
  • 1
0 votes
1 answer
158 views

On xfs, why can't I hardlink to /tmp/, giving the error "Invalid cross-device link" when my fstab indicates tmp is on the same partition?

My error: ln "99700.fa821246f01ef7f3d86a503e33de5753b50640d69de790fd3db5a5dc31ffa45d1dc64a93f950379ee432aa27cbb0593e6e50ddbb6f8a7e279afaf90cec961233.png" /home/anon/foo.png # ^ ...
user avatar
  • 183
0 votes
0 answers
42 views

Centos, How to delete files with full root (but not full file system), with out repartitioning

Nvidia has screwed me and kept every single old version of CUDA since cuda 10 including every minor version inside of root totaling up to nearly 30 gigabytes of my 50 gigabyte root partition, and upon ...
user avatar
  • 121
0 votes
0 answers
22 views

Change size of /tmp before mounted [duplicate]

I noticed on my Fedora workstations that my RAM usage was preposterous. It turned out that the tmpfs in /tmp was being mounted with 12GB of ram as its size. I found out that I can remount /tmp to a ...
user avatar
0 votes
1 answer
123 views

Delete /tmp subvolume on btrfs partition scheme and make systemd-tmpfiles work with default tmpfs /tmp directory

I've made the mistake of mounting the /tmp directory as a btrfs subvolume. The problem is that systemd-tmpfiles won't clean it. How can I delete the /tmp subvolume and fix this? I'm new to filesystems,...
user avatar
0 votes
0 answers
52 views

Browser downloads fail - Insufficient space in /tmp

I have a virtual machine (CentOS) that was pre-configured (I didn't partition them) and I have some of my work on it. When I got access to the VM, it had very less storage space, and it isn't ...
user avatar
4 votes
1 answer
605 views

curl not able to write to /tmp directory owned by user

I tried running the script as instructed in https://docs.docker.com/engine/security/rootless/: $ curl -fsSL https://get.docker.com/rootless | sh But the script crashed in the following line: curl -L -...
user avatar
0 votes
1 answer
77 views

mktemp creates file in pwd rather than in /tmp

Previously mktemp used to create files in /tmp. Today I noticed that mktemp is creating file in $PWD rather than in /tmp? Did I change something inadvertently? Any suggestions to fix this? Note: I ...
user avatar
  • 1,362
1 vote
1 answer
47 views

finding which files were removed from /tmp upon reboot

Hoping against hope here, but is there some in-built logging mechanism through which I can find out which files were deleted from /tmp upon reboot? I could obviously tweak the shutdown scripts, but ...
user avatar
  • 519
1 vote
1 answer
1k views

How to disable/override automatic mounting of tmpfs to /tmp by systemd?

Background: On my system /tmp is a regular part of the / partition and I use it for a few important features of the system. Current systemd Approach: On new systems systemd has started to take over ...
user avatar
  • 7,487
0 votes
2 answers
109 views

Is it possible to create a temporary file that will autodelete after a specific time that it's not read by any other program?

I'd like to create a temporary file that will be read by multiple scripts after its creation, but I don't have an easy way of monitoring when the last script finishes reading this temporary file to ...
user avatar
  • 319
0 votes
0 answers
35 views

Root cannot append to file in /tmp [duplicate]

As root run: cd /tmp seq 10 > foo chmod 666 foo seq 10 >> foo chown daemon foo seq 10 >> foo This gives: -bash: foo: Permission denied It is clear that it is due to /tmp's special ...
user avatar
  • 29.5k
1 vote
1 answer
253 views

From where does the service ID come from when using PrivateTmp=true in services?

Configuring a systemd service with PrivateTmp=true leads to the fact that the service uses a private tmp directory. Instead of /tmp such a service will use a directory like that: /tmp/systemd-private-...
user avatar
1 vote
1 answer
69 views

Is it possible to avoid trashing hard disk while using /tmp as a RAM device?

Origin I need to implement some features to my GDB helper scripts but I have to stick with an older version of GDB (5.3, in this case). Since older versions lack so many features, I need to workaround ...
user avatar
  • 1,937
3 votes
0 answers
186 views

decluttering systemd-private clutter?

Is there any way to configure systemd so that it creates its private tmp directories (for unit files with PrivateTmp=true) in subdirectories under /tmp and /var/tmp instead of the top-level of those ...
user avatar
  • 66.5k
1 vote
2 answers
1k views

Why is using /tmp/ more popular and recommended than using /dev/shm?

From my own experience, i noticed that most people use /tmp/ for temp files or to save on disk write, but i don't often see anyone recommending or even using /dev/shm instead. Why is that?
user avatar
5 votes
3 answers
1k views

Is it possible to boot in a way that doesn't delete /tmp?

Say I'm running some lengthy process, consisting of two steps: a generates a big intermediate file, say /tmp/aoutput, then b reads that file and does something further with it. Now the system crashed ...
user avatar
1 vote
1 answer
52 views

Do Unix/Linux systems generally have a "dump" directory?

A "middle" dump directory (path Y) to which one can to cut/copy-paste a few files from path X and then later cut/copy-paste these into path Z could be handy if someone is say upgrading a ...
user avatar
  • 11
0 votes
1 answer
2k views

/tmp full but... empty

In a Python program, I use np.memmaps, which make use of the /tmp directory to handle massive arrays. I make sure to clear /tmpregularly by running rm -rf /tmp/* every time I use this code. However ...
user avatar
0 votes
1 answer
441 views

Create a persistent temp directory with temporary content

I wish to create a directory in $TMP_DIR or /tmp/ which persists forever (i.e. is never deleted) but it is maintained by OS, i.e. the content of which can be deleted if they have not been opened/used ...
user avatar
  • 613
2 votes
0 answers
233 views

Slow boot process while ubuntu starts because of systemd temporary file creation

I run ubuntu 16.04 on a Dell laptop; I just love the fact that you can set the workspace to a grid format in 16.04, unlike say 18.04 where it looks like a line, but not sure if 20 does have the grid ...
user avatar
  • 21
0 votes
0 answers
633 views

sudo crontab won't work without /tmp dir: "(CRON) error (create tmpfile)"

My system regularly moves /tmp to /snapshot. (background) Now I want to create a cronjob that checks every minute if the directory was renamed by the system, and renames it back. $ sudo crontab -l # .....
user avatar
  • 281
1 vote
0 answers
292 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 ...
user avatar
1 vote
2 answers
381 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 ...
user avatar
  • 1,225
0 votes
1 answer
51 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 ...
user avatar
  • 13.2k
2 votes
1 answer
89 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 ...
user avatar
  • 2,345
0 votes
2 answers
316 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 ...
user avatar
1 vote
1 answer
550 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/...
user avatar
  • 325
0 votes
1 answer
1k 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, ...
user avatar
  • 1
0 votes
1 answer
44 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 ...
user avatar
  • 11
2 votes
1 answer
484 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 ...
user avatar
  • 123
1 vote
1 answer
5k 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 ...
user avatar
  • 4,111
11 votes
4 answers
4k 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 ...
user avatar
  • 135
2 votes
1 answer
980 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, ...
user avatar
0 votes
0 answers
323 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-...
user avatar
  • 10.9k
4 votes
2 answers
3k 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 ...
user avatar
  • 10.9k
0 votes
1 answer
833 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 ...
user avatar
  • 3,362
3 votes
2 answers
9k 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 ...
user avatar
  • 24.6k
0 votes
1 answer
324 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 ?
user avatar
3 votes
2 answers
1k 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 ...
user avatar
-1 votes
3 answers
124 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 ...
user avatar
  • 25