- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remove unnecessary directory and temp....
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
11-12-2007 11:35 PM
11-12-2007 11:35 PM
remove unnecessary directory and temp....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 11:40 PM
11-12-2007 11:40 PM
Re: remove unnecessary directory and temp....
$rm filename
$rmdir dirname
but be careful...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 11:42 PM
11-12-2007 11:42 PM
Re: remove unnecessary directory and temp....
Sure.
rm -rf *
Problem is you are not defining the problem.
Where are the temporary files?
Are they needed for the applicaiton to work?
As far as logging goes sam provides a log trimming facility.
You could right a script that uses find /dirname with the +mtime and at least get rid of stuff that has not been modifired recently.
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
11-12-2007 11:42 PM
11-12-2007 11:42 PM
Re: remove unnecessary directory and temp....
define unnecessary directory and temp.
what directories and by temp I assume you mean temp files, what temp files ?
you have to be more specific.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 11:45 PM
11-12-2007 11:45 PM
Re: remove unnecessary directory and temp....
Also remeber to assign points for any helpfull answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 11:49 PM
11-12-2007 11:49 PM
Re: remove unnecessary directory and temp....
You need to be cautious again.
Unnecessary directories should be defined as "user created directories" and temporary files should be defined as "files created by the application software and which are located in a specific directory".
If you intend to create custom scripts, you need to be careful of not deleting any system or application directories that could cause it to crash.
Otherwise, you can also configure your system so that all temp directories are automatically cleaned on restarts:
e.g.
/etc/rc.config.d/clean,
/etc/rc.config.d/clean_tmps
and
/etc/rc.config.d/clean_uucp
hope this helps too!
kind regards
yogeeraj