Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

tmp

What is the difference between /tmp and /var/tmp?

August 11, 2022 by Magenaut

On most FHS systems, there is a /tmp folder as well as a /var/tmp folder. What is the functional difference between the two?

Categories Q&A, Unix & Linux Tags directory-structure, fhs, tmp Leave a comment

How create a temporary file in shell script?

August 11, 2022 by Magenaut

While running a script, I want to create a temporary file in /tmp directory.

Categories Q&A, Unix & Linux Tags shell-script, tmp Leave a comment

What happens when you ‘mount over’ an existing folder with contents?

August 10, 2022 by Magenaut

Right now /tmp has some temporary files in it. When I mount my hard drive (/dev/sdc1) on top of /tmp, I can see the files on the hard drive. What happens to the actual content of /tmp when my hard drive is mounted? Is it possible to perform r/w operations on the actual content of /tmp while the hard drive is mounted?

Categories Q&A, Unix & Linux Tags mount, tmp Leave a comment

Tab completion errors: bash: cannot create temp file for here-document: No space left on device

August 9, 2022 by Magenaut

When using the tab bar, I keep getting this error:

Categories Q&A, Unix & Linux Tags debian, shell, ssh, tmp Leave a comment

What are correct permissions for /tmp ? I unintentionally set it all public recursively

August 9, 2022 by Magenaut

I have created a really really short life temporary directory that I wanted to share between some users for a few hours : /some/path/tmp

Categories Q&A, Unix & Linux Tags chown, permissions, tmp Leave a comment

When exactly does tmpwatch clear out files I place in /tmp?

August 8, 2022 by Magenaut

CentOS 6.x

Categories Q&A, Unix & Linux Tags centos, tmp Leave a comment

Finding the correct tmp dir on multiple platforms

August 8, 2022 by Magenaut

I have a script that needs to create temporary files for its work, and clean up after itself. My question is about finding the right base directory for the temporary files.

Categories Q&A, Unix & Linux Tags directory, shell-script, tmp Leave a comment

hook a script to apt-get

August 6, 2022 by Magenaut

I have /tmp on a separate partition, and mounted with noexec. I am using Debian.

Categories Q&A, Unix & Linux Tags apt, mount, tmp Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress