- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what function with these files
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
06-06-2004 03:56 AM
06-06-2004 03:56 AM
Under / , I see these files as below:
.ICEauthority
.TTauthority
.Xauthority
.dt
.sw
......
what function with these file ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 04:46 AM
06-06-2004 04:46 AM
Re: what function with these files
.sw is for the software distributor, i believe though its usually in /var
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 05:19 AM
06-06-2004 05:19 AM
Re: what function with these files
because the / is 100% now, so I need to delete something to release the space , what & where files I can delete ?
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 06:06 AM
06-06-2004 06:06 AM
Re: what function with these files
find / -xdev -name core : remove these ones
find /dev -type f : /dev should only contain device files, check normal files
find / -xdev -size +1000000c : check large files in /
...
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 06:09 AM
06-06-2004 06:09 AM
Re: what function with these files
Create a list of directories in / , excluding from it all filesystems.
ls -1 > /tmp/list; edit it and run
cat /tmp/list | while read dirn; do
du -ks $dirn
done | sort -nr | more
By this way you find the directories which take most of the disk space.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 07:25 AM
06-06-2004 07:25 AM
Re: what function with these files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 08:06 AM
06-06-2004 08:06 AM
Re: what function with these files
du -kx / |sort -n
This will show the sizes of all the directories under / that are not mount points so that you can determine the culprit. Most of the case I have seen are where there are directories without filesystem but with permissions to non-root users. Non-root users may inadvertantly fill-up these directories causing / to fill up. If / is at 100%, you will not be able to login. So, get alarms whenever it reaches 80% so that you will have some time to react. There may be cases where it may get filled within no time. Creation of core files by program crashes is such an incident. So, it is a good idea to keep / filesystem not more than 60% used.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 05:09 PM
06-06-2004 05:09 PM
Re: what function with these files
.sw file is to store the session files. Have a look at man sd for more details.
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 06:02 PM
06-06-2004 06:02 PM
SolutionI have compiled a collection of commands for such a scenario and I use them quite effectively. Hope it helps you too.
Some simple commands which might be very useful in case of filesystem full. I am giving them below,
1) Find files which are above a particular size in a specific filesystem:
# find / -size +100000c -xdev -print
a)The "+" symbol is important as it enables to list files which are "equal
to" or "above" the size given.
b) The "c" denotes the size in bytes. If not given, it will be taken as
blocks.
c)The "-xdev" option prevents the command going over to other filesystems
other than the one mentioned.
2) To find any files which are in /dev directory that are not special files:
# find /dev -type f -print
1) This command will show any files accidentally created in the /dev
directory by wrong commands (especially during backups).
3) To remove files from /tmp directory which have not been updated for the past
14 days:
# find /tmp -type f -atime +14 -exec rm {} \;
1) If you want to list the files before removing substitute "ll" for
"rm".
2) Similarly, you can check in /var/tmp by substituting the directory name.
4) To remove the files and empty directories which were not accessed for the
past 14 days under /tmp:
# find /tmp -type f -atime +14 -print -exec rm -f {} \;
# find /tmp -type f -atime +14 -print -exec rmdir {} \;
1) This is a 2 line command. The first line will remove
files not accessed for the past 14 days.
2) Second line removes the empty directories. remember to use only "rmdir"
and NOT "rm -r" as "rmdir" will not remove directories which are not empty.
5) To sort the files according to their file size,in descending order:
#!/bin/sh
# Long listing sorted
/bin/ll -aF $* | sort -nr -k 5 | more
a) The above 3 lines should be put inside a file and make it executable.
b) then you can use it as follows, (supposing you having put the above
script in a file named sort_list)
# sort_list /var
This will list files from /var in descending file size order.
Let me know if you require any clarifications.
With Regards,
Mohan.