How would you truncate a log file that is growing too large
if you don't have space to compress it or to move it
somewhere else? How would you do it?
Answers were Sorted based on User's Feedback
Answer / bipin bapurao sautadekar
more two commands to truncate the file.
# cat /dev/null > filename
# cat > filename and then press ctrl+c
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / syed
Why not you try by using below command
> <file name>
Is This Answer Correct ? | 10 Yes | 2 No |
How to find the VERITAS License?
What are thing you must ensure to provide security the system
what is mean by system calls
How to bring the process to offline or online
How to stop if Solaris system it rebooting continually. What is the steps to come normal position.
What is the protocol supported by NFS
If a main.cf files corrupted how will you rectify
If telnet not working, what are the thing to be checked
Which command display diagnostics in ok boot prompt?
How can you create domains?
How to review all zones in solaris10?
What r the daemons for DNS , Veritas, Apache,NFS Server & Client 4How can u configure two DHCP and Two DNS servers r there and u have 100's of users then 1st system takes which DHCP server and which DNS sever 5 what is the use of NIS how can u configure 6 what is the use RAID and which is the best(Solaris) 7 in RAID 5 and RAID 0+1 which u will preffer (Veritas)
3 Answers HCL, IBM, Tech Mahindra,