tip n trik linux part 4

Biar enggak lupa, :-)


  • menghapus chace memory pada linux
# sync; echo 3 > /proc/sys/vm/drop_caches

  • mengganti vbox hd-uuid
# VBoxManage internalcommands sethduuid hardisk.vdi

  • Set bash time out
# vim /etc/profile.d/tmout.sh
TMOUT=900 
readonly TMOUT
export TMOUT
  •  extract zip file
$ unzip file.zip


  • dump partition tables
# sfdisk -d /dev/sda > sda_dump.out

  • import partition tables ke disk lain
# sfdisk /dev/sda < sda_dump.out


  • membuat module SELinux
# audit2allow -M namamodule < /var/log/audit/audit.log 
atau
 
# less /var/log/audit/audit.log | grep nagios > audit2allow -M namamodule


Comments

  1. mantabs gan.. makasih atas cara meng unzip file zip di linux.hehe

    ReplyDelete

Post a Comment

Popular posts from this blog

authentication failure using SSH pam_unix(sshd:auth): authentication failure;

Howto configure SPLUNK Universal Forwarder

openvpn howto make OCSP server using OpenSSL [Part2]