From: Philip Webb <purslow@sympatico.ca>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Is this cruft in my /tmp?
Date: Sun, 23 Jul 2006 01:25:49 -0400 [thread overview]
Message-ID: <20060723052549.GB4806@sympatico.ca> (raw)
In-Reply-To: <200607222350.42913.michaelkintzios@gmail.com>
060722 Mick wrote:
> I noticed in /tmp a rather large number of files of the type:
> prw------- 1 root root 0 Jun 29 23:13 sh-np-1151622697
> prw------- 1 root root 0 Jun 29 17:44 sh-np-1151623392
> prw------- 1 root root 0 Jun 29 17:44 sh-np-1151623817
> prw------- 1 root root 0 Jun 29 23:13 sh-np-1151630251
> prw------- 1 root root 0 Jun 29 19:41 sh-np-1151630339
> prw------- 1 root root 0 Jul 1 01:14 sh-np-1151697722
> prw------- 1 root root 0 Jun 30 21:28 sh-np-1151698413
> Are these some process calls that were cought in the /tmp
> when perhaps the machine crashed some time in the past
> or when I might have shutdown with screen running in the background ?
> Can/should I delete them?
Google for 'sh-np' found :
http://www.linuxforums.org/forum/linux-programming-scripting/37618-tmp-sh-np-xxxxxx-interrupted-system-call.html
It looks like part of the calculation of dependences.
I have a long list roughly daily from 050213-611 ,
so it mb related to some version of the Kernel (cp discussion above).
The File Hierarchy System is the rulebook for the purpose of files/dirs :
http://www.pathname.com/fhs/pub/fhs-2.3.html#TMPTEMPORARYFILES
"Programs must not assume that any files or directories in /tmp
are preserved between invocations of the program ...
it is recommended that files and directories located in /tmp
be deleted whenever the system is booted".
NB /var/tmp is different :
http://www.pathname.com/fhs/pub/fhs-2.3.html#VARTMPTEMPORARYFILESPRESERVEDBETWEE
"The /var/tmp directory is made available for programs that require
temporary files or directories that are preserved between system reboots".
So if Gentoo follows FHS rules, it sb safe to delete any file/dir in /tmp
which was not created at/after the latest system reboot.
However, don't do that with anything in /var/tmp .
Anyone want to confirm/amend/deny any of this (smile) ?
--
========================,,============================================
SUPPORT ___________//___, Philip Webb : purslow@chass.utoronto.ca
ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
TRANSIT `-O----------O---' University of Toronto
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-07-23 5:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-22 22:50 [gentoo-user] Is this cruft in my /tmp? Mick
2006-07-23 5:25 ` Philip Webb [this message]
2006-07-23 13:29 ` Philip Webb
2006-07-23 19:22 ` Mick
[not found] ` <200607231218.46831.michaelkintzios@gmail.com>
2006-07-29 20:36 ` Bo Ørsted Andresen
2006-07-29 21:53 ` farfargoth
2006-07-30 9:13 ` Neil Bothwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060723052549.GB4806@sympatico.ca \
--to=purslow@sympatico.ca \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox