Questions tagged [tmp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
0answers
8 views

Investigating User activity in EC2 instance

HI long story short I've got this task from my supervisor asking me to investigate a File that was created by an ex-employee in our administration/JumpBox EC2 box (debian) in his /tmp directory. For ...
1
vote
0answers
13 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 ...
-2
votes
0answers
30 views

When I try to login into my Kali Linux, it is showing “xsession-warning-unable-to-write-to-tmp/”

xsession-warning-unable-to-write-to-tmp/ is the error which comes when I try to login with my user id, but when I try to login as root, I'm able to get into the system. What can I do solve this error?
0
votes
2answers
53 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?
3
votes
3answers
132 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 ...
1
vote
1answer
38 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 ...
0
votes
1answer
63 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 ...
0
votes
1answer
49 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 ...
3
votes
0answers
24 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 ...
0
votes
0answers
60 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 # .....
1
vote
0answers
101 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
30 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
102 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
29 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 ...
2
votes
1answer
54 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
96 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
145 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
1answer
304 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
26 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
276 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
1answer
2k 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 ...
11
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
274 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
241 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
1k 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
634 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
2answers
3k 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
227 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
743 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
76 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 ...
4
votes
1answer
4k 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
202 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
2k 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
353 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
981 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
84 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
303 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
12k 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
4k 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
4k 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
10k 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 ...
5
votes
3answers
4k 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
330 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
967 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
541 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 ...
5
votes
2answers
4k 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
8k 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