LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-10-2012, 03:49 PM   #1
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Rep: Reputation: 0
/tmp contents gone


So being the idiot I can be sometimes here is what happened:

I just finally got my slackware64 installation multilib setup completed and was deciding lets now reinstall my graphics driver to get those 32bit libraries installed. So I install them and then I switch back to my normal user and find that my /tmp directory is pretty crowded and I can't stand this I examine it slightly and decide lets delete all this junk. I attempt this and fail to delete certain or any items so I switch back to root and do rm -r * the idiot I am for this I can't begin to describe. I have restarted my computer and now everything seems to work fine but is there anything I should worry about?

Last edited by fatalerror0x00; 11-10-2012 at 03:59 PM. Reason: Fixed previous issue
 
Old 11-10-2012, 04:27 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
The /tmp directory is empty by default. There are several distribution which wipe /tmp anytime the system boots.

If you don't know about important data which you've stored on /tmp by yourself, there should be no problem.

There are although several applications which use /tmp for their temporary data (hence the name). Also the Slackpackages built from slackbuilds.org are stored in /tmp, so be careful if you use slackbuilds.org.

Markus
 
Old 11-10-2012, 05:34 PM   #3
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
I'm glad to hear what you said until possibly up til slackbuilds...Isn't anything in /tmp safe for deleting (at least without issue) even if it's slackbuilds? if so then how could this get any worse :P I dont have much I have put on this system but it's how I installed alot of important stuff (like all but one thing that i've installed) :P but i do see no issues with anything installed from a slackbuild as far as i can tell but maybe I'm wrong and didn't install Java through a slackbuild cause I know java works fine I been using I do almost constantly but thanks for your reply
 
Old 11-10-2012, 05:37 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Don't get me wrong, the slackbuilds are built in this directory, once you have installed them you can delete the package. But I have a directory on my systems /usr/local/packages where I store the slackbuild-packages (I've several computers and use only one for package-building).

Markus
 
Old 11-10-2012, 05:45 PM   #5
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
I see so long as I've installed the slackbuild I'm set then? That sounds better :P cause I checked if I installed Java through slackbuilds and turns out I did so and so I was like well there must be something i just don't understand thank you!
 
Old 11-13-2012, 06:04 AM   #6
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
I wouldn't worry about it! I have modified the startup scripts on my home system to clear down anything in /tmp which is older than X days old.
 
Old 11-13-2012, 06:37 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by devnull10 View Post
I wouldn't worry about it! I have modified the startup scripts on my home system to clear down anything in /tmp which is older than X days old.
Hello devnull10,

this is a good idea, you should provide the code and tell us how many days X is

Markus
 
Old 11-13-2012, 07:02 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,290
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
Hello devnull10,

this is a good idea, you should provide the code and tell us how many days X is

Markus
Ten, if he's using Roman numerals.
 
1 members found this post helpful.
Old 11-13-2012, 07:04 AM   #9
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
Yeah I'm not worried about it anymore I reinstalled the OS for other reasons but I also did find out prior to that, that everything works fine after I restarted the OS. Using slackware appartently at restart deletes and recreates files so that makes things simple . but if you would like please do post your code there for people to see incase there OS doesn't do this so they can clear out there tmp directory. or at least it can clear user files which don't get cleared. So we should say system temp files get deleted at restart.
 
Old 11-13-2012, 07:07 AM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by brianL View Post
Ten, if he's using Roman numerals.
Which then of course is written in Perl http://search.cpan.org/~dconway/Ling...a/Perligata.pm and http://search.cpan.org/~chorny/Roman/lib/Roman.pm

Markus
 
Old 11-13-2012, 07:25 AM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,290
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
Yeah, mentioned here, too.
 
1 members found this post helpful.
Old 11-13-2012, 07:27 AM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by brianL View Post
Thanks for the link, I didn't know this thread, but sounds good

Markus
 
Old 11-13-2012, 07:38 AM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,290
Blog Entries: 61

Rep: Reputation: Disabled
If anybody has any useful scripts, such as that mentioned by devnull10, please consider writing an article/HOWTO for the Slackware Documentation Project. Thanks.
http://docs.slackware.com/slackdocs:contributing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot remove contents of the /tmp folder bergman Linux - Newbie 12 02-18-2009 09:17 AM
deleted contents of /tmp dave`2005 Slackware 2 06-22-2007 10:45 PM
Is it safe to delete the contents of /tmp? tramni1980 Slackware 19 01-15-2007 02:39 PM
2 gigabyte /tmp directory..ok to delete contents pAn1k Linux - Newbie 3 09-02-2004 09:56 AM
file:/tmp - mysterious contents. Rm, or not rm? linuxfond Linux - Newbie 5 06-12-2004 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:50 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