- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to empy the large size file?
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
Discussions
Discussions
Forums
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
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
тАО01-23-2009 07:07 PM
тАО01-23-2009 07:07 PM
I need to remove some of the log file for informix db. Instead of removing I thought to empty the file.
Can any one tell me whata is the command to empty the file.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2009 07:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2009 09:44 PM
тАО01-23-2009 09:44 PM
Re: How to empy the large size file?
#> {filename},
prior excuting the command, ensure that it will hamper your system or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2009 10:19 PM
тАО01-23-2009 10:19 PM
Re: How to empy the large size file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2009 04:18 AM
тАО01-24-2009 04:18 AM
Re: How to empy the large size file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2009 04:42 AM
тАО01-25-2009 04:42 AM
Re: How to empy the large size file?
Do you have dd on your system ?
dd if=/dev/zero of=output.file bs=1024 count=1024
if it helps you, then pls assign point
rgds
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2009 03:35 PM
тАО01-25-2009 03:35 PM
Re: How to empy the large size file?
> Taifur: dd if=/dev/zero of=output.file bs=1024 count=1024
This is the hard-way and needless consumes time.
Doing '> file' in a shell immediately truncates the end-of-file pointer to the beginning, nulling or emptying the file.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2009 04:01 PM
тАО01-25-2009 04:01 PM
Re: How to empy the large size file?
> Taifur: dd if=/dev/zero of=output.file bs=1024 count=1024
This is the hard-way and needless consumes time. AND I meant to add that unless you limit the record 'count' you will create an "infinitely" large file that will fill your filesystem. WIth a record count, all you do is overwrite the beginning characters anyway --- not very useful.
[ NO POINTS FOR THIS PLEASE ]
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 01:55 AM
тАО01-26-2009 01:55 AM
Re: How to empy the large size file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 09:57 AM
тАО01-26-2009 09:57 AM