Rotiranje logova (2)
# Preselite sadasnji log:
/bin/mv -f “$file” “$file.0”
# Stvoriti novi log i dozvoliti pisanje u njega:
> “$file”
/bin/chmod 644 “$file”
# Kompresija starog loga:
/usr/ucb/compress “$file.0”
Previous slide
Next slide
Back to first slide
View graphic version