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

Post a Comment