1753295 Members
6049 Online
108792 Solutions
New Discussion юеВ

/tmp file system on hpux

 
SOLVED
Go to solution
Manoj1
Advisor

/tmp file system on hpux

Hi All,

What care should be taken while deleting the contents of the /tmp file system ?

How do we check if this /tmp file is being used by any user or application ?

Thanks,
Manoj
3 REPLIES 3
Ismail Azad
Esteemed Contributor
Solution

Re: /tmp file system on hpux

Hi manoj,

/tmp is typically a "scatch space" and normally would not contain any "critical" data. However, because of the default permissions that go on to the /tmp filesystem, it is always good to associate it with a "sticky bit" which is a feature which is present by default in one of the levels of Bastille.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Manix
Honored Contributor

Re: /tmp file system on hpux

try with lsof utility & grep for the the lvol name ,even glance has certain option to check the applications touching the fs.

try with lsof | grep -i

You can check what files are being used as follows.

fuser -cu /tmp
fuser -u /tmp/somefile
lsof +D /tmp
lsof -f -- /tmp

http://h30499.www3.hp.com/t5/System-Administration/tmp-file-system-issue/m-p/4273475#M334587


http://h30499.www3.hp.com/t5/System-Administration/unable-to-determine-tmp-filesystem-usage/m-p/3498273#M216090

HP-UX been always lovable - Mani Kalra
Dennis Handly
Acclaimed Contributor

Re: /tmp file system on hpux

>How do we check if this /tmp file is being used

Or you could just remove "old" files:
find /tmp -mtime +14 -exec rm -rf {} +