LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 08-02-2023, 11:12 PM   #1
zeroone
LQ Newbie
 
Registered: Jul 2023
Posts: 13

Rep: Reputation: 0
Preventing automatic removal of whole directory in /tmp


How to prevent MX automatically remove a whole directory in /tmp, i.e. it's correct that it must automatically wipe all directory's contents but must keep the directory itself live ?

Last edited by zeroone; 08-03-2023 at 12:34 AM.
 
Old 08-02-2023, 11:35 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,674

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
No. In many distributions /tmp is not even a real directory, it is a virtual directory that does not survive shutdown (think a special kind of ramdrive).

Even where it is on physical storage, the entire purpose of /tmp is transient data that does not need to be retained past short term usage.

If you have something you need to retain, /tmp is the wrong home for it and you should find another place.

Last edited by wpeckham; 08-02-2023 at 11:37 PM.
 
2 members found this post helpful.
Old 08-03-2023, 01:35 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,925

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
yes, better to use another dir, outside of /tmp, and if you wish you can create a symlink in tmp pointing to the other location.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cd /tmp is not working it keep saying /tmp is not a directory Lawsonspoon Linux - Server 4 05-04-2021 03:39 PM
[SOLVED] ? about "marking for removal" or "marking for complete removal" in synaptic pkg mgr Gregg Bell Linux - Newbie 5 03-06-2014 07:27 AM
Grub bootloader rescue mode preventing me from loading windows after linux removal MoonsBane Linux - General 5 01-30-2012 10:53 PM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
Synaptic: "removal" vs. "complete removal" newbiesforever Linux - Software 2 08-24-2008 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration