Questions tagged [tmp]

142 questions
388
votes
8 answers

How is the /tmp directory cleaned up?

How is the /tmp directory cleaned up? Is it automatic? If so, how frequently is it cleaned up?
Olivier Lalonde
  • 57,431
  • 62
  • 125
  • 146
142
votes
3 answers

What is the "t" letter in the output of "ls -ld /tmp"?

When running the command ls -ld /tmp, the output would be: drwxrwxrwt 30 root root 20480 Mar 11 14:17 /tmp So I have two main questions: What is the letter t after the permissions? As far as I know /tmp is used to create temporary files related…
user255675
139
votes
9 answers

How to clean /tmp?

rizhas@rizhas-laptop:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda7 67G 58G 5,2G 92% / none 4,0K 0 4,0K 0% /sys/fs/cgroup udev 1,5G 12K 1,5G 1% /dev tmpfs 303M 1,2M 302M …
Rizhas
  • 1,499
  • 2
  • 10
  • 4
44
votes
7 answers

Not enough space on /tmp

I'm not able to run update manager as I get an error saying that there is not enough free space in the /tmp directory. I've practically cleaned out the tmp directory but the error persists. here's df-h /dev/loop0 13G 11G 952M 92% / udev …
seeker
  • 1,697
  • 4
  • 16
  • 17
36
votes
8 answers

Good filesystem for /tmp?

I'm thinking of having /tmp on its own partition... what would be a good filesystem to format it with? The reason I ask is because the data being stored in /tmp is not permanent, so I don't need journaling, a fancy index, or anything.
Nathan Osman
  • 31,915
  • 40
  • 179
  • 259
26
votes
5 answers

How can I make /tmp executable?

I have Ubuntu 12.04 LTS and I tried to upgrade to Ubuntu 12.10. When I clicked in the Update Manager Upgrade a message box apeared: Cannot run the upgrade. This usually is caused by a system where /tmp is mounted noexec. Please remount without…
zbarni
  • 457
  • 2
  • 6
  • 8
21
votes
2 answers

How to allow snap applications to access /tmp folder?

Usually I'm avoiding snap-based applications, but sometime I need them. For example - Markdown Lint Tool is shipped only as Snap named mdl. It works great when files are in home folder - $ echo "# header" > ~/test.md $ /snap/bin/mdl ~/test.md ;…
N0rbert
  • 97,162
  • 34
  • 239
  • 423
20
votes
3 answers

Why doesn't /tmp use tmpfs?

I have loads of RAM and I use very little. I also do record some screencasts with gtk-recordmydesktop, which by default saves to /tmp while recording. I assumed that it would mean storing to RAM as much as possible, but then I actually checked and…
Jo-Erlend Schinstad
  • 29,477
  • 6
  • 67
  • 114
17
votes
3 answers

Accidentally deleted tmp folder

i was trying to run sudo rm -r ./tmp but instead typed sudo rm -r /tmp Will it be fixed by running? sudo mkdir /tmp if i do what permissions should i give it? ps: i didnt log out of my system yet
Adonis K. Kakoulidis
  • 1,326
  • 2
  • 14
  • 29
16
votes
1 answer

How to make Downloads folder behave like a temp directory

In order to reduce disk space usage, I want to automate a temporary clean in my Downloads folder. I figured two ways to do so: 1) Changing the configurations of firefox, etc. to save files to /tmp/ (this would require, for safety, changing the…
henrique
  • 437
  • 4
  • 14
13
votes
5 answers

files created then deleted at every second in tmp directory

By mistake I noticed that in /tmp directory are continuously created some files then immediately deleted. Using a succession of ls -l /tmp I managed to catch the created files: -rw------- 1 root root 0 Apr 2 19:37 YlOmPA069G -rw------- 1…
Adrian
  • 485
  • 1
  • 6
  • 17
12
votes
1 answer

Can I delete /var/tmp/mkinitramfs-* files?

I notice that my /var/tmp folder has occupied by 9.3GB space on my Ubuntu 16.04.2. Particularly, there are a bunch of mkinitramfs_* folders taken most of the space in the tmp folder. I looked into them, and they seem to be the temporary files for…
Xiaodong Qi
  • 2,562
  • 3
  • 16
  • 21
11
votes
2 answers

Using a cronjob to clean /tmp

Is it safe to use a bash script and a cronjob to empty /tmp automatically, or should I do this differently?
Jochem Kuijpers
  • 212
  • 1
  • 2
  • 7
10
votes
0 answers

How to open files in /tmp with snap applications

I thought running something like snap connect app_name:/tmp would work but it didn't. Is there any way to accomplish this?
dsSTORM
  • 1,840
  • 1
  • 14
  • 34
10
votes
1 answer

/tmp in tmpfs, how do this only with systemd?

I have now a laptop with Ubuntu 18.04 and i love it. i have mounted /tmp as tmpfs via /etc/fstab line as this: tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777 0 0 now, i like to know how i can do this…
Yonsy Solis
  • 842
  • 2
  • 8
  • 19
1
2 3
9 10