Extend your ec2 Linux disk without reboot

For some reason, you have to extend your ec2 Linux server with our reboot and securely. In this port, you will learn how you can extend your ec2 Linux disk on aws. In this example, you will see extend the disk size from 80GiB to 120GiB. Step 1: Modify Volume Login to your AWS Console and find your ec2’s volume […]

Find large files in CentOS, ubuntu and MacOS

Sometimes, maybe everybody needs to check large files in the system. There some useful commands which I’m using often. Here is the first pattern: If file size more than 250 MB in the system: Here is the results:

Error: No space left on the device when starting/stopping services only

I’m using Amazon SSM Agent for connecting to EC2 instance via securely. Amazon SSM Agent is also able to connect to the EC2 instance console via aws.amazon.com web console. So, this is my preferred way. About a few days ago, when I tried to connect to EC2 via Amazon SSM Agent it doesn’t respond and after that, I decided to […]

Download specific file extension via wget

Sometimes, there may be files with more than one extension in a directory or folder. For example, .jpg, .png, .gif, .mp3, .mp4 etc. You want to download only gif files specifically from that source, but don’t know how to do this? Don’t be afraid, you’re right. wget is small software with a GNU license (i.e. free), by default on Linux […]

Find the exact size of certain files in Linux

One day, there may be a lot of files in more than one extension in the macOS, Linux or server you use, and you may be wondering about the size of these files or just want to see the size of the files with the corresponding extension for a specific study. The other day, the server I was working on […]

Disable SELinux on CentOS 7 or CentOS 8

This tutorial shows you how you can disable SELinux (Security-Enhanced Linux) on your CentOS server. The CentOS version should be 7 or 8. The version does not matter. What is SELinux? SELinux is a security mechanism directly controlling by the kernel. It allows administrators and users more control over access controls on access based SELinux policies. SELinux has three different […]