T txt3rob Verified User Joined Jan 16, 2007 Messages 101 Feb 19, 2007 #1 how do you empty a log im not tottaly up on nano properly you see
F freshmint Verified User Joined Oct 10, 2005 Messages 113 Feb 19, 2007 #2 echo > /var/log/whatever would do. On nano, you could press CTRL+K several times. Or, in (v)im, press v (enter visual mode), G (go to last line) and then d (delete).
echo > /var/log/whatever would do. On nano, you could press CTRL+K several times. Or, in (v)im, press v (enter visual mode), G (go to last line) and then d (delete).
andyreed Verified User Joined Nov 28, 2004 Messages 264 Location Minneapolis, MN Feb 19, 2007 #3 txt3rob said: how do you empty a log im not tottaly up on nano properly you see Click to expand... There is another command: cp /dev/null LOG_FILE
txt3rob said: how do you empty a log im not tottaly up on nano properly you see Click to expand... There is another command: cp /dev/null LOG_FILE