Sungju's Slow Life

Personal journal


  • How to keep record the commands executed by root

    If you want to keep record of the commands executed by root account, you can achieve that by using audit rules. First, add the below line in /etc/audit/audit.rules -a entry,always -S execve -F uid=0 And restart auditd to apply the changes $ chkconfig auditd on $ service auditd restart Continue reading

  • Use hexadecimal in ‘bc’

    ‘bc’ is really cool application in Linux/Unix. it provides lots of convenient functions without launching GUI calculator. One thing sometimes necessary is a conversion for the calculation. Mostly converting hexadecimal and decimal. If you want to use hexadecimal for the input, you can use ‘ibase=16’ and below value will be all treated as 16base. $… Continue reading