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 do the disk cloning on solaris
how can system identify run level at boot time?
If plex is failed then how can you recover it?
what is the back up software we r using in solaris 8,9,10
what is the command to know about pkg information
How to stop the process in Solaris?
How to configure domain controller in SAMBA using SOLARIS 10 OS and How to centralize domain name and creating users.How to share files for WINDOWS XP clients
What are the steps to be follow to add a disk in veritas & before add the disk what are the steps to be follow
hi frnds I created sparse root zone, in that zone when i try to change the passwd it is giving permission denied. what is the reason and how to chnage the root passwd in the zone. can u please explain the query.
how to now the network speed, whether it is a full duplex or half duplex? and what is full duplex and half duplex
What is an alternative to the “top” command on Solaris?
What is shrinking and how to shrink a volume?