Linux Bash Scripts

##### Apache Webserver memory usage #####
# Ubuntu
ps -ylC apache2 | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Process Size (MB): "x/((y-1)*1024)}'
ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}'
##### mysqldump #####
mysqldump testdb $(mysql -Ne 'show tables' | grep -vP '^(history|sessions|watchdog|cache.*)$') | gzip > testdb.sql.gz

Linux Security Dictionary of Terms

Sniffing is the process in which all the data packets passing in the network are monitored. Sniffers are usually used by network administrators to monitor and troubleshoot the network traffic.  A synonym for "passive wiretapping."

Spoofing is the process in which an intruder introduces fake traffic and pretends to be someone else (legal source or the legitimate entity). Spoofing is done by sending packets with incorrect source address over the network.

Linux Security

A security related Linux distribution is Kali Linux.  Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing.  It has 600+ Penetration testing and network security tools pre-installed.  The true indication of a great Penetration Testing distribution is the selection of useful and relevant features that it offers security professionals.  It is for those who work under the umbrella of cybersecurity and analysis.

Budgeting 101

Budgeting 101: Strategies for Effective Money Management

Effective money management is a crucial skill that can empower individuals to take control of their finances, achieve financial goals, and build a secure future. Budgeting plays a central role in managing your money effectively, allowing you to track income, expenses, and savings. By implementing smart budgeting strategies, you can make informed financial decisions, reduce debt, and create a solid foundation for financial success. Here are some key strategies to help you master the art of budgeting.