B blog Verified User Joined Jan 28, 2011 Messages 131 Oct 5, 2011 #1 Hi I have a file in /var/log/secure it is 30 mb i can delete file? or it is necessary?
SeLLeRoNe Super Moderator Joined Oct 9, 2004 Messages 6,632 Location A Coruña, Spain Oct 5, 2011 #2 Well if you didnt had any security issue you can remove all the content: Code: echo "" > /var/log/secure Should empty it. But 30mbs for a log is not that big... Regards Last edited: Oct 5, 2011
Well if you didnt had any security issue you can remove all the content: Code: echo "" > /var/log/secure Should empty it. But 30mbs for a log is not that big... Regards
L lilas Verified User Joined Dec 12, 2010 Messages 6 Oct 5, 2011 #3 I guess it is a typo error. Would the command be: Code: echo "" > /var/log/secure Since the >> will append, not override the file.
I guess it is a typo error. Would the command be: Code: echo "" > /var/log/secure Since the >> will append, not override the file.
SeLLeRoNe Super Moderator Joined Oct 9, 2004 Messages 6,632 Location A Coruña, Spain Oct 5, 2011 #4 Right, sorry Thanks for the correction. Ill edit my original post. Regards