Linux

Linux is a family of open-source Unix-like operating systems based on the Linux kernel. Some of the most popular Linux distributions include Debian, Fedora, and Ubuntu.

www.linux.org

image - When the AWS EC2 instance was created

When the AWS EC2 instance was created

Here is how to check when an EC2 instance was created: Option 1. Check the Volume attachment time Option 2. Using a Python script import boto3 ec2 = boto3.resource('ec2', region_name='instance_region_name') volume = ec2.Volume('vol-id') print volume...

Diagnosing and protecting Linux from DDoS

In this guide I will cover 3 parts: Detecting a DDoS attackProtecting from a DDoS attackTesting resistance to DDoS Detecting a DDoS attack on Linux To detect DDoS attacks on your server you can use netstat: netstat | grep http | wc -l netstat -ntu |...

reboot aws instance - 3 Ways to Reboot AWS Instance EC2

3 Ways to Reboot AWS Instance EC2

Here are 3 different ways to restart EC2 AWS Instance: 1. Reboot EC2 Instance using AWS Console Login into your AWS EC2 ConsoleNavigate to “Instances” and Select instance which you want to restart, right-click on it and then select...

mtr - Run MTR (traceroute) every minute

Run MTR (traceroute) every minute

From time to time I’m experiencing Connection timed out errors in cPanel > Sent Summary and I need a way to run MTR at that exact time to troubleshoot the network problem. For this I can create a new script, mtr.sh: /usr/sbin/mtr -r -c 2...

chrome KRZ656D7Vo - How to Enable/Disable debug mode in CakePHP

How to Enable/Disable debug mode in CakePHP

To enable debug mode in CakePHP go to config folder and open app.php find ‘debug’ => filter_var(env(‘DEBUG’, false), FILTER_VALIDATE_BOOLEAN), and change the value of debug false to true Older CakePHP versions To enable...

MobaXterm Personal 20.3 kv2c2lOpG8 - Bash script to check server load and notify by email

Bash script to check server load and notify by email

Shell scripts are always to handy to do some tasks on a Linux-based server for SysAdmins, they can automate everything they do frequently through a shell script. Here I’m going to share a simple script that I got from Muhammed Fasal to monitor...

select folders - dupeguru – find and remove duplicate files

dupeguru – find and remove duplicate files

DupeGuru is a simple application to locate all the duplicate files on your PC and delete them easily. The hard disk may be filled with duplicate files that are useless and use valuable space. If we try to locate these files manually would be an...

find locate linux - How to find files in Linux using locate or find commands

How to find files in Linux using locate or find commands

In Linux, there are a variety of commands to locate files, each with its own set of advantages and disadvantages. Some are only available in certain distributions, and others are not installed by default. Let’s start with the quickest approach...