Learning SAP - Oracle - Solaris
Sunday, December 16, 2012
HOW TO MAKE EXISTING FILE SIZE TO ZERO ON SOLARIS
Sometimes, our application log file grow faster and make your file system almost full. You already backup the file and you want make its size 0 bytes without deleted the file. Below is the command that you can use:
# cat /dev/null >
file_name
1 comment:
zaheer shaikh
August 13, 2013 at 9:55 PM
use sudo cp /dev/null filename
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
use sudo cp /dev/null filename
ReplyDelete