Skip to main content

Questions tagged [tmp]

Filter by
Sorted by
Tagged with
1 vote
2 answers
178 views

Am installing Python-3.13.3 on an Ubuntu 22.04 LTS system. make reported ../../../src/Python/python-3.13.3/Parser/parser.c:42298:1: fatal error: error writing to /tmp/ccC4u7pE.s: No space left ...
Heime's user avatar
  • 45
1 vote
2 answers
153 views

I would like to store some files in a temp directory that will be automatically deleted within one day and not require a reboot. The files will be about 6 Gigabytes. When should I use /tmp? Use /...
I_Can_Fixit's user avatar
3 votes
0 answers
124 views

time touch /tmp/test.dat real 0m1.03s user 0m0.00s sys 0m1.02s A full second of sys-mode time to create a file in /tmp. That can become unbearable for ksh scripts that open dozens of files ...
Paul W's user avatar
  • 183
1 vote
0 answers
190 views

Is there any documentation for the default permissions of the /tmp folder on *nix, in particular Linux? (Or perhaps /tmp doesn't have specified default permissions?) Background: I'm trying to ensure ...
burija's user avatar
  • 11
7 votes
4 answers
2k views

I have a RHEL 8 workstation that hosts an app whose GUI is accessible through https on an unprivileged port. When the app is started, it creates a few socket files in /tmp with random names and the ....
Fravadona's user avatar
  • 1,668
0 votes
1 answer
82 views

How to overcome/force-fix the following problem: $ sudo /usr/sbin/tmpreaper 15d /tmp error: run time exceeded! This may be indicative of an attack to use tmpreaper to remove critical files; or the ...
xpt's user avatar
  • 1,924
0 votes
1 answer
128 views

TLDR; If /tmp in mounted as tmpfs, in the presence of swap, is there any kind of priority when swapping ? Does tmpfs start to swap before applications ? FULL STORY I have a laptop with 32G of RAM (...
ChennyStar's user avatar
  • 2,019
0 votes
1 answer
250 views

Users: root userA - the normal owner of the file userB - the user that wants to write to the file The file: Let's say I have a basic text file: /tmp/file Ownership: chown userA:groupA /tmp/file ...
LaVache's user avatar
  • 423
4 votes
1 answer
2k views

I use Ubuntu 20.04, on a machine that has a limited system drive. I came across a build script that checks for available size in /tmp, and it refuses to run if it doesn't see 12 GB available, which I ...
sdaau's user avatar
  • 7,168
0 votes
1 answer
2k views

From my knowledge of the `/tmp` directory, it is cleared on reboot. I'm unsure what happens to the living host whenever the /tmp folder is flooded (put to the max storage capacity) - does Linux have ...
Tristan F.-R.'s user avatar
0 votes
1 answer
410 views

After searching the tmpfiles.d, its seems like there is a limited number of option to erase the files/directories. I want to totally erase the temporary directories with a shred like command, is there ...
Jaay's user avatar
  • 145
1 vote
1 answer
1k views

The file and folder are owned by root but I did sudo chmod ugo+rw on both, which I confirmed with ls -l. Still, I cannot remove the file as normal user. ❯ ls -ld /tmp /tmp/perm drwxrwxrwt 46 root root ...
xeruf's user avatar
  • 651
0 votes
1 answer
470 views

This is a very stupid question but how can we set up /var/tmp? Is there a special way to do it or will just creating the directory suffice?
George M.'s user avatar
5 votes
2 answers
13k views

To have /tmp on tmpfs, I know I can use an entry in /etc/fstab, but I do not understand the role of /etc/default/tmpfs mentioned sometimes, and in what case I need to create or modify it. Recently, I ...
Alexey's user avatar
  • 2,380
1 vote
1 answer
451 views

I have an application that has a process on the /tmp folder, and the process creates another file or folder. If the original process gets ended by the application, will all the files created by it get ...
an.ordinary.user's user avatar
0 votes
1 answer
339 views

In a multiseat desktop system with the /tmp directory polyinstantiated, the /tmp/.X11-unix/ directory and Xn instances are still created under root's /tmp not a user's. ssh -Ying into or out of the ...
SHawarden's user avatar
  • 554
23 votes
4 answers
3k views

I am investigating the behavior of a binary on Oracle Linux 9 (XFS filesystem). This binary, when called by a process, creates a directory under /tmp and copies some files to it. This directory gets a ...
Artur Klemens's user avatar
1 vote
1 answer
988 views

I have a simple script that creates a zram device and formats it to ext4 and finally, it mounts zram on /tmp. #!/bin/bash # create zram with size 1.5G # $zram_dev is created device path (eg. /dev/...
linux user's user avatar
4 votes
2 answers
3k views

My app is keeping files in /var/spool/myapp and that works fine. If my app crashes, then it might leave files in that directory. Over time, this can add up to a lot of files, so I wondered if the /...
TSG's user avatar
  • 1,993
0 votes
0 answers
186 views

I am using MX-21 and my /tmp directory is getting purged on every reboot. I would like to keep my /tmp for a week, so after some searching the web I modified the /etc/tmpfiles.d/tmp.conf file and ...
MX-User's user avatar
1 vote
0 answers
2k views

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-...
VictorLee's user avatar
  • 187
3 votes
0 answers
7k views

/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 ...
Jonas Stein's user avatar
  • 4,338
2 votes
1 answer
382 views

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 ...
T_R_O_N's user avatar
  • 23
4 votes
2 answers
711 views

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 ...
hanno's user avatar
  • 181
4 votes
1 answer
37k views

/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 /...
vcth4nh's user avatar
  • 333
2 votes
1 answer
1k views

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 ...
JayRugMan's user avatar
  • 126
3 votes
1 answer
2k views

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

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 ...
Nasrat Salehi's user avatar
0 votes
3 answers
3k views

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 /...
Vlastimil Burián's user avatar
0 votes
2 answers
5k views

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? ...
Kai Mo's user avatar
  • 1
0 votes
1 answer
1k views

My error: ln "99700.fa821246f01ef7f3d86a503e33de5753b50640d69de790fd3db5a5dc31ffa45d1dc64a93f950379ee432aa27cbb0593e6e50ddbb6f8a7e279afaf90cec961233.png" /home/anon/foo.png # ^ ...
Anon's user avatar
  • 215
0 votes
0 answers
651 views

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 ...
Krupip's user avatar
  • 131
1 vote
1 answer
398 views

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,...
Vinícius Gonçalves de Oliveira's user avatar
0 votes
0 answers
183 views

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 ...
thatbangaloreanguy's user avatar
5 votes
2 answers
5k views

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 -...
Thiago Barcala's user avatar
1 vote
1 answer
873 views

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 ...
Porcupine's user avatar
  • 2,176
1 vote
1 answer
438 views

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 ...
puwlah's user avatar
  • 529
6 votes
1 answer
9k views

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 ...
Ned64's user avatar
  • 9,304
1 vote
2 answers
3k views

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 ...
raylight's user avatar
  • 541
0 votes
0 answers
41 views

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 ...
Ole Tange's user avatar
  • 37.6k
2 votes
1 answer
1k views

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-...
stackprotector's user avatar
1 vote
1 answer
419 views

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 ...
ceremcem's user avatar
  • 2,461
5 votes
0 answers
649 views

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 ...
cas's user avatar
  • 85.1k
2 votes
2 answers
4k views

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?
secemp9's user avatar
  • 2,520
7 votes
5 answers
5k views

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 ...
leftaroundabout's user avatar
1 vote
1 answer
394 views

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 ...
George's user avatar
  • 11
3 votes
1 answer
6k views

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 ...
Clément Moissard's user avatar
1 vote
1 answer
2k views

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 ...
user14492's user avatar
  • 933
2 votes
0 answers
394 views

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 ...
Curious's user avatar
  • 21
1 vote
0 answers
1k views

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 # .....
user2740's user avatar
  • 291