UNIX Openserver ver 5.0 freeing up space.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers UNIX Openserver ver 5.0 freeing up space.
# 1  
Old 07-23-2013
Question UNIX Openserver ver 5.0 freeing up space.

SmilieHi all,

Please advice me is it safer to use the following command to free up (truncate) space in HDD.

1) > /usr/adm/messages
2) > /usr/adm/sulog
3) > /usr/adm/ctlog
4) > /tmp
5) > /usr/adm/sa
6) > /var/spool

Thanks in advance

Rukshan
# 2  
Old 07-24-2013
Well, >directory sounds like a shell error:
Code:
$ mkdir dd
$ >dd
ksh[2]: dd: cannot create
$

There are several common strategies for these files and dirs. For log files, daily rotation and compression with deletion of >N days is sensible. For /tmp, finding the flat files and empty sub-directories older than N days, using fuser to see if they are in use, and deleting the unused is safer than a complete zap (which a boot does on many systems). You forgot /var/tmp/, which is a long term public temp space, and as such has to be cleaned more gently, focusing on large files more than old fiels. Sorting files and dirs in reverse order allows you to remove files before their dirs. Note that removing a file updates the parent dir mod time.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Any Other Browser for SCO UNIX OpenServer?

Obviously, the client browsers which came with SCO UNIX OpenServer, Netscape and Mozilla, are horribly outdated now. Does anyone know of a relatively current browser which will work in their place? (2 Replies)
Discussion started by: Transpower
2 Replies

2. SCO

USB Printing for SCO UNIX OpenServer 5.0.7

Years ago I set up USB printing for SCO UNIX OpenServer 5.0.7 for a client--but I've misplaced my notes on how to do this! Maintenance Pack 5 is installed. I need step-by-step instructions to proceed. I've searched the SCO Knowledge Base site and found nothing there or elsewhere on the Web. (3 Replies)
Discussion started by: Transpower
3 Replies

3. SCO

ESATA on SCO UNIX OpenServer 5.0.7

Has anyone here used eSATA drives on SCO UNIX OpenServer 5.0.7? SCSI host adapters and drives are getting harder to find, so I'm thinking about eventually switching to eSATA, but only, of course, if they will work with OpenServer. (2 Replies)
Discussion started by: Transpower
2 Replies

4. SCO

Subverison in Sco unix openserver 5.0.7

Hi everybody I'm going to install svn client in sco unix openserver 5.0.7 where should I start ? I have no Idea what to do ? tnx (3 Replies)
Discussion started by: javad1_maroofi
3 Replies

5. Programming

C - Freeing resources

I was wondering what is the function in C to free a resource(usually a variable) I know in C# there a Garbage collector, but in c and C++ there are none. I believe in c++ the function is free(); (8 Replies)
Discussion started by: james2432
8 Replies

6. UNIX for Advanced & Expert Users

Unix Openserver 5.0

I'm compiling an application using gcc 2.95.2 and I have strong suspicions that this compiler has a bug that produces my app to abort with a coredump. So I would like to upgrade my compiler but I still couldn't find any other version of the gcc compiler that runs on my Unix Openserver 5.0. Do... (0 Replies)
Discussion started by: Edus001
0 Replies

7. UNIX for Advanced & Expert Users

X25 on Tru UNIX ver 5

How do i set up X25 protocol on version 5 of Tru Unix (Compaq). I have manged to do it using version 4. What are the major differences.:confused: (1 Reply)
Discussion started by: samudimu
1 Replies

8. UNIX for Advanced & Expert Users

Sco Unix OpenServer Release 3.0

hi everybody I have got a set of sco unix open server release 3.0 flopyy disks series N1, N2, M1, P1...P43, Release notes.. ý did a fresh installation. but ý cant install ethernet card. when ý use netconfig-ad a chain -tcpip... there is a messge : the sco contain TCP/IP driver. and ý... (2 Replies)
Discussion started by: kaygusuz
2 Replies

9. IP Networking

Installation Problem in Unix Openserver

I have certain problems while Installing UNIX OPENSERVER.Could anyone solve that if I provide that problem. (3 Replies)
Discussion started by: Rajraius
3 Replies

10. UNIX for Advanced & Expert Users

Mounting a remote filesystem under SCO Unix ver 5.0.5

Can anyone help me? I have 2 servers on the same LAN, one as a live server and one as a backup server, both running SCO OpenServer Enterprise. I need to mount the /u filesystem of the backup server as a directory on the live server, so that if I use the df -v command I can see it as an additional... (1 Reply)
Discussion started by: darkestafrica
1 Replies
Login or Register to Ask a Question