command
-
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 http://pagead2.googlesyndication.com/pagead/show_ads.js 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
About Me
A software engineer who loves any technologies that makes life easier. That’s why I love Linux and Mac at the same time.
Recent Posts
- How to find the actual memory usage by each process
- How to check memory usage in Linux – part 1.2 – Per-process level memory usage check
- How to check memory usage in Linux – part 1.1 – System level memory usage check
- How to check memory usage in Linux – part 1. User space
- How to track SLAB usage using slub_debug=U