cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting or compressing files on unix level

Former Member
0 Kudos

Hi all,

I have to verify if there are some files to delete or compress in it.

The major allocation files(size in kbytes) on filesystem /usr/sap/QB5:

/usr/sap/QB5/DVEBMGS02/work>du -ks * | sort -nr | head -15 | egrep -v zip

589592 dev_w21

451333 dev_w14

131984 dev_disp

130704 c:\descricao

69123 pws-7010_01102002_04102002_411.txt

59232
brsctsa0laam13\PROC\SPED\7010_01122006_01122006.txt

59232
brsctsa0laam13\7010_01122006_01122006.txt

58162 dev_w1

57553 dev_w19

52697 dev_rd

52069 pws.7010_01102002_03102002_411.txt

50501 dev_tp

34498 dev_w0

How do i know which file needs to be there and which file should be deleted and what needs to be taken care while deleting.

Thanks in advance

Shams

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shams

Are these the only files in your work directory ? I dont think so ...

There will be files with dev_w?.old . which you can empty using command echo>dev_w?.old

Regards

Anish

Former Member
0 Kudos

Hi Anish,

Apart from the files which i mentioned earlier there are many files like ENQLOG,ESSTATS,G0001V00,startsap1.trc,startsap2.trc,etc ,Prod_Test_ASN05.txt,PRUDALANIS2.TXT,MERCOSUR_SUPPLIER_DATA_DETAIL_20080902151953.dat,PCMONO_2007093010.txt,TMPPFL,Y_000011,stderr1,sqlnet.log,sapadmpf,shutdown.sap.

There are many files ,some of them are as old as 3 years old.

Thanks for your help .

Shams

Former Member
0 Kudos

These old log files can be deleted but make sure of one thing:before deleting just check when were they last used,if the date is 3 years old,delete them but if they have been recently changed,dont delete them

Rohit

Answers (1)

Answers (1)

Former Member
0 Kudos

Refer these , and you can delete .old or core files too

Note 16513 - File system is full - what do I do?

Note 6604 - Deleting job logs at operating system level