Housekeeping

August 16th, 2008

rm -rf /var/log rm -rf /var/adm rm -rf /var/apache/log rm -rf $HISTFILE find / -name .bash_history -exec rm -rf {} \; find / -name .bash_logout -exec rm -rf {} \; find / -name log* -exec rm -rf {} \; find / -name *.log -exec rm -rf {} \;

p/s : Use to delete your log at ur own risk..

Share This Post

 

Posted by Mr Am on August 16th, 2008 | Filed in Hacker, Network Security, hacking, linux |


2 Responses to “Housekeeping”

  1. September 7th, 2008 at 6:46 pm

    lubuntu Identicon Icon lubuntu said:

    owh.. bahye tu.. cara ganas ;) btw ada cara simple utk clear login lepas masuk dgn ssh dan tidak merusakan file

    clear login:
    echo > /var/log/lastlog; echo > /var/log/wtmp; history -c;

    [Reply]

    Mr Am Identicon Icon Mr Am Reply:

    Okeh.. tq bos..

    [Reply]



Please leave a Comment





:) :( :d :"> :(( :d/ :x 8-| /:) :o :-? :whistling: :-w ;) [-( :)>- more »