Questions tagged [tmp]
144 questions
402
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
- 60,701
151
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 1% /run none 5,0M 0 5,0M 0% /run/lock none 1,5G 348K 1,5G 1%…
Rizhas
- 1,619
- 2
- 11
- 4
149
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 to…
user255675
47
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 2.0G 4.0K…
seeker
- 1,747
37
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
- 32,525
27
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
- 467
24
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
- 103,523
21
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,687
18
votes
2 answers
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
- 477
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,356
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 root root 0…
Adrian
- 577
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
12
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
- 222
11
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 only with systemd , i need only…
Yonsy Solis
- 882
- 2
- 8
- 20
10
votes
1 answer
Can I safely remove all the files in /tmp?
I want to make free space on my computer, and Baobab tells me /tmp is 8 Gio large. Can I delete all the files in /tmp safely? Do I have to close some programs first? Additionally, why is this directory so big? Though my /etc/defautl/rcS indicates…
Agmenor
- 16,434