Can I gzip or delete pacct files in solaris ?


 
Thread Tools Search this Thread
Operating Systems Solaris Can I gzip or delete pacct files in solaris ?
# 1  
Old 06-01-2007
Can I gzip or delete pacct files in solaris ?

Hi,

On my server there are so many pacct files in /var/adm. It is eating up my /var partition. Can I delete or gzip those files ?

Thanks
NeeleshG
# 2  
Old 06-01-2007
you can look for the turnacct command. think its like this
Code:
/usr/lib/acct/turnacct switch; /bin/rm -f /var/adm/pacct?

fine tune it according to your environment, then put in the cron.
# 3  
Old 06-01-2007
When a process ends, the kernel writes one record per process, in the form of acct.h, in the /var/adm/pacct file, so yes, you may delete them.
# 4  
Old 09-16-2008
just out of my curiosity, so what is this pacct? I read some articles it says, this file keep some of our logs?? I'm not sure.. is this pacct really important?

if this pacct file important, then it's not that good to delete it right??

Code:
http://docs.sun.com/app/docs/doc/817-1758/6mhfg8m7f?a=view


Last edited by flekzout; 09-16-2008 at 05:33 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Debian

Some commands not logged in pacct

Hi, Examining the Debian Linux logfiles, I found out that not all commands are logged in my pacct (/var/log/account/pacct) For instance, if I run and stop Wireshark and do after that # lastcomm | grep "wireshark" The wireshark command is logged as expected. # lastcomm | grep... (1 Reply)
Discussion started by: suvios
1 Replies

2. Shell Programming and Scripting

tar and gzip files

Hi Guys, I am using RHEL5 and Solaris 9 & 10. I want to tar and gzip my files then remove them after a successful tar command... Lets say I have files with extension .arc then I want to tar and gzip these files. After successful tar command I want to remove all these files (i.e .arc). ... (3 Replies)
Discussion started by: Phuti
3 Replies

3. Solaris

Solaris, delete install files

Hi I would like to know if and what installation files can be deleted on a sun solaris server. From the listing below there are several files that I would like to delete in order to get some free space on the disk. Is it safe to delete zip, gz and Z files files located in silent_install or will... (2 Replies)
Discussion started by: lmdcmn
2 Replies

4. UNIX for Advanced & Expert Users

gzip vs pipe gzip: produce different file size

Hi All, I have a random test file: test.txt, size: 146 $ ll test.txt $ 146 test.txt Take 1: $ cat test.txt | gzip > test.txt.gz $ ll test.txt.gz $ 124 test.txt.gz Take 2: $ gzip test.txt $ ll test.txt.gz $ 133 test.txt.gz As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies

5. Shell Programming and Scripting

how to delete 3 days old files using ftp in a shell script (Solaris OS)

I need help in writng a script to delete last three days files from a remote server using only FTP / SFTP. I was using find command which is not working and i cant use ssh Immediate response is highly appreciated . Thank in advance! ---------- Post updated 12-05-10 at 09:16 PM ----------... (5 Replies)
Discussion started by: Olivia
5 Replies

6. Programming

Uncompress a gzip and bzip file using java on unix solaris environment

Hi, I need to uncompress a gzip and bzip file using java on unix solaris environment. I also need to retreive the header information of the file inorder to differentiate between gzip and bzip file. Please help Pooja (0 Replies)
Discussion started by: wadhwa.pooja
0 Replies

7. Shell Programming and Scripting

gzip the files with particular extension

Is there any way to compress only the files with .xml extension within a folder which in turn has many sub folders? gzip -r9 path/name/*.xml is not working This compression is done in the Windows server using Batch script. (2 Replies)
Discussion started by: Codesearcher
2 Replies

8. Shell Programming and Scripting

unzip particular gzip files among the normal data files

Hello experts, I run Solaris 9. I have a below script which is used for gunzip the thousand files from a directory. ---- #!/usr/bin/sh cd /home/thousands/gzipfiles/ for i in `ls -1` do gunzip -c $i > /path/to/file/$i done ---- In my SAME directory there thousand of GZIP file and also... (4 Replies)
Discussion started by: thepurple
4 Replies

9. UNIX for Dummies Questions & Answers

gzip all the files in a directory

Hi, There are multiple files in a directory with different names.How can they be gzipped such that the timestamp of the files is not changed. (2 Replies)
Discussion started by: er_ashu
2 Replies

10. UNIX for Dummies Questions & Answers

gzip, multiple files

Hello Everyone, Here is what I am trying to do. I have four text files, I want to gzip them under unix and mail the zipped file via outlook. I am able to do this easily enough, but using winzip or pkunzip to unzip the file, there is only one file. (In essence, all four files were... (2 Replies)
Discussion started by: smbodnar
2 Replies
Login or Register to Ask a Question