HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /tmp - mysterious hidden files?
Operating System - HP-UX
1834429
Members
2349
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2004 07:38 AM
10-08-2004 07:38 AM
what is using all the space in /tmp?
I'll admit I've limited UX experience, but what am I missing here? Or is my math just bad?
Here's my /tmp FS with %used, blks free and blks total:
/tmp 82% 142276 819200
and here is output from du
icgsil1:/tmp> du
0 ./lost+found
0 ./.opccfgmerge
4056 .
and here is what's in /tmp:
icgsil1:/tmp> ll
total 2952
drwxr-xr-x 2 root sys 96 Apr 19 2002 .opccfgmerge
-rw-rw-rw- 1 root sys 1469558 Oct 8 14:36 JSPlog.txt
-rw-r--r-- 1 root root 102 Oct 8 12:06 btmp.out
-rw-r--r-- 1 root root 6 Oct 8 12:06 btmp.stat
-rw-r--r-- 1 root sys 0 Oct 7 19:14 iPlanetIcgs.out
-rw-rw-rw- 1 root sys 331 Oct 8 14:34 icgsFtp.out
drwxr-xr-x 2 root root 96 Apr 19 2002 lost+found
-rw-rw-rw- 1 root sys 227 Oct 8 14:31 queueManager.log
-rw-rw-rw- 1 icgroute icgs 130 Oct 8 14:18 receive.ksh.out
-rw-rw-rw- 1 root sys 1454 Oct 6 11:00 web_tab.log
-rw-r--r-- 1 root root 525 Oct 8 14:35 wtmp.out
-rw-r--r-- 1 root root 7 Oct 8 14:35 wtmp.stat
icgsil1:/tmp>
Thanks in advance!!!!!!!
I'll admit I've limited UX experience, but what am I missing here? Or is my math just bad?
Here's my /tmp FS with %used, blks free and blks total:
/tmp 82% 142276 819200
and here is output from du
icgsil1:/tmp> du
0 ./lost+found
0 ./.opccfgmerge
4056 .
and here is what's in /tmp:
icgsil1:/tmp> ll
total 2952
drwxr-xr-x 2 root sys 96 Apr 19 2002 .opccfgmerge
-rw-rw-rw- 1 root sys 1469558 Oct 8 14:36 JSPlog.txt
-rw-r--r-- 1 root root 102 Oct 8 12:06 btmp.out
-rw-r--r-- 1 root root 6 Oct 8 12:06 btmp.stat
-rw-r--r-- 1 root sys 0 Oct 7 19:14 iPlanetIcgs.out
-rw-rw-rw- 1 root sys 331 Oct 8 14:34 icgsFtp.out
drwxr-xr-x 2 root root 96 Apr 19 2002 lost+found
-rw-rw-rw- 1 root sys 227 Oct 8 14:31 queueManager.log
-rw-rw-rw- 1 icgroute icgs 130 Oct 8 14:18 receive.ksh.out
-rw-rw-rw- 1 root sys 1454 Oct 6 11:00 web_tab.log
-rw-r--r-- 1 root root 525 Oct 8 14:35 wtmp.out
-rw-r--r-- 1 root root 7 Oct 8 14:35 wtmp.stat
icgsil1:/tmp>
Thanks in advance!!!!!!!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2004 07:41 AM
10-08-2004 07:41 AM
Re: /tmp - mysterious hidden files?
do
du -skx /tmp/* | sort -rn
Anil
du -skx /tmp/* | sort -rn
Anil
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2004 07:43 AM
10-08-2004 07:43 AM
Solution
UNIX has no hidden files; those that begin with "." are only "hidden" in the sense that ls by default doesn't display them. Almost certainly, you are dealing with files that have been unlinked (rm'ed) but not yet free. The space is not really freed until all processes which have the file open either close the file or terminate.
One very common operation in the /tmp directory (although it should now be done by applications in /var/tmp) is to create a file, immediately unlink it, and then continue to use the file. Although there will not be a directory entry for this temporary file, it does exist and occupies space until closed. To get a good understanding of this, man 2 unlink.
Generally the cure is to find the processes that have the files open and kill them. Lsof is a very good tool to help you find these files.
One very common operation in the /tmp directory (although it should now be done by applications in /var/tmp) is to create a file, immediately unlink it, and then continue to use the file. Although there will not be a directory entry for this temporary file, it does exist and occupies space until closed. To get a good understanding of this, man 2 unlink.
Generally the cure is to find the processes that have the files open and kill them. Lsof is a very good tool to help you find these files.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2004 09:41 AM
10-08-2004 09:41 AM
Re: /tmp - mysterious hidden files?
The DATA Blocks of the FS assigned to /tmp are not cleared immediately after use by the processes. Rather the inodes are reused as Clay mentioned. Thats the reason you see this. You wouldnt however notice this when the system is just rebooted :)
-Cheers
Govind
-Cheers
Govind
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP