Operating System - HP-UX
1833897 Members
1795 Online
110063 Solutions
New Discussion

what function with these files

 
SOLVED
Go to solution
Rambo_1
Regular Advisor

what function with these files

Hi,
Under / , I see these files as below:
.ICEauthority
.TTauthority
.Xauthority
.dt
.sw
......

what function with these file ?

Thanks
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: what function with these files

.dt is the .dt-profile for cde behavior and settings saving

.sw is for the software distributor, i believe though its usually in /var

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rambo_1
Regular Advisor

Re: what function with these files

Thanks
because the / is 100% now, so I need to delete something to release the space , what & where files I can delete ?

BR
Thierry Poels_1
Honored Contributor

Re: what function with these files

hi,

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.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Victor Fridyev
Honored Contributor

Re: what function with these files

Hi,

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
Entities are not to be multiplied beyond necessity - RTFM
Patrick Wallek
Honored Contributor

Re: what function with these files

The first place I usually check when / is at 100% is /dev/rmt to see if someone mistyped a tape device file. If you see any file that is not a device file in /dev/rmt then someone made a mistake.
Sridhar Bhaskarla
Honored Contributor

Re: what function with these files

The files .*authority and the directory .dt are related to CDE/Xwindows. .sw is the localized settings for SD-UX for that user. They shouldn't take much disk space. In your case, I would suggest you do

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
You may be disappointed if you fail, but you are doomed if you don't try
Manish Srivastava
Trusted Contributor

Re: what function with these files

Hi,

.sw file is to store the session files. Have a look at man sd for more details.

manish
Mohanasundaram_1
Honored Contributor
Solution

Re: what function with these files

Hi Rambo,
I 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.
Attitude, Not aptitude, determines your altitude