cat
-
make a big log file to be truncate if the log is not important anymore or...Computer/linux 2012. 3. 19. 23:02
Situation file_to_be_truncated is a debug or monitor log file is going to be a big size due to whatever reasons. I would like to be truncated or be ignored this log at this moment, but this file is connected to a running process. Solution one of my colleagues gives me a brilliant solution to do that without interrupting a process. cat /dev/null > file_to_be_truncated Example Before 786658068 Mar..