LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-08-2013, 06:42 PM   #1
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Rep: Reputation: 16
Managing Slackware - /tmp directory


My /tmp direcotry contains a lot of directory with strange name like lu6qsnb[a-z]... and files like virtuoso-*.ini

Can you tell me what are those files doing, why are they created, and is it safe to remove them?

Thanks in advance.
 
Old 01-08-2013, 06:58 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
The virtuoso-*.ini are created by virtuoso when running KDE, of which one will be relevant while the KDE session is running. Not sure about the lu* files.
They can all be safely deleted. Anything in /tmp is a temporary file that can be regenerated if required.
 
Old 01-08-2013, 07:45 PM   #3
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Original Poster
Rep: Reputation: 16
Thanks. I just delete all those and everything seems fine.
 
Old 01-08-2013, 09:37 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I use tmpwatch myself.
 
Old 01-08-2013, 10:28 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
A lot of Slackers put the following line in /etc/fstab:

Code:
tmpfs            /tmp             tmpfs       defaults         0   0
That mounts /tmp on a RAM drive, so that it's cleared every boot.
 
Old 01-10-2013, 11:54 AM   #6
Uzuki
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Slackware, RedHat
Posts: 27

Rep: Reputation: 4
what is the diferences between
Code:
tmpfs            /tmp             tmpfs       defaults         0   0
and
Code:
tmpfs            /dev/shm         tmpfs       defaults         0   0
 
Old 01-10-2013, 02:22 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
First first mounts /tmp on a RAM drive. The second mounts /dev/shm on a RAM drive. I have both lines in my fstab.
 
Old 04-30-2013, 01:43 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
A lot of Slackers put the following line in /etc/fstab:

Code:
tmpfs            /tmp             tmpfs       defaults         0   0
Already present and I'm confident that I did not alter this file...
Maybe Pat really does know what's best for me.
 
Old 04-30-2013, 02:47 PM   #9
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Habitual View Post
Already present and I'm confident that I did not alter this file...
Maybe Pat really does know what's best for me.
That line isn't preset by the installer. Perhaps you are reading the /dev/shm line?
 
Old 04-30-2013, 03:55 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by ruario View Post
That line isn't preset by the installer. Perhaps you are reading the /dev/shm line?
Waaaaaaay too many consoles open today...
You are correct, of course:
Code:
tmpfs            /dev/shm         tmpfs       defaults         0   0
 
Old 04-30-2013, 04:03 PM   #11
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
@trainee: You might find this useful http://docs.slackware.com/howtos:gen...ree_your_space
 
Old 04-30-2013, 10:15 PM   #12
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,445
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by dugan View Post
A lot of Slackers put the following line in /etc/fstab:

Code:
tmpfs            /tmp             tmpfs       defaults         0   0
That mounts /tmp on a RAM drive, so that it's cleared every boot.
This.

And then you can make your web browser store its cache there...
 
Old 05-01-2013, 05:33 AM   #13
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by dugan View Post
A lot of Slackers put the following line in /etc/fstab:

Code:
tmpfs            /tmp             tmpfs       defaults         0   0
That mounts /tmp on a RAM drive, so that it's cleared every boot.
actuall, i do

Code:
tmpfs            /tmp             tmpfs       size=4G,mode=777    0   0
ie. limiting the amount of memory and setting permissions
 
Old 05-01-2013, 06:46 AM   #14
fskmh
Member
 
Registered: Jun 2002
Location: South Africa
Distribution: Custom slackware64-current
Posts: 307

Rep: Reputation: 92
Quote:
Originally Posted by Martinus2u View Post
actuall, i do

Code:
tmpfs            /tmp             tmpfs       size=4G,mode=777    0   0
ie. limiting the amount of memory and setting permissions
+1

Otherwise after a couple of months of uptime you start having issues with things that need to write in /tmp, and then you end up having to use tmpwatch in any case.
 
Old 05-01-2013, 07:19 AM   #15
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Martinus2u View Post
limiting the amount of memory
It automatically limits to half the available memory in any case, even if you do not set it
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to delete a directory in /tmp directory pradeepdee6 Linux - Newbie 7 12-14-2012 03:41 AM
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
Managing the /dev directory Woodsman Slackware 7 10-18-2005 08:44 PM
VMWare and /tmp directory in Slackware fader Slackware 6 02-15-2005 01:20 PM
/tmp directory Bobmeister Linux - General 3 06-01-2003 04:32 PM

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

All times are GMT -5. The time now is 02:22 PM.

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