Similar Posts
How to find large file size on linux
Often time, you may need to know which file contains large file size, and delete it to save space. Here’s a code pattern to show you how to find large file size on Linux : 1. File size >= 100MB Find all files that have a size >= 100MB, from root folder and its sub-directories….
How to Check Apache Concurrent Connections in Linux Using netstat and ss Command?
What’s ss Command? ss stands for socket statistics. It is used to dump socket statistics about network/socket connections. It’s showing information similar to netstat, it works better and faster compared with netstat. It can display more TCP and state information than other tools. Since the ss command gets all the information directly from kernel space…
How to Stop Spam Attacks on cPanel Hosting Server
Linux is an open source widely spread community. There are millions of Linux users and intruders as well, their job is to make malicious activities on different servers to leak information or change the things as it works. It is really important to stop malicious activities and SPAM attacks on cPanel Hosting Server. There are…
Install the latest version of Nginx on CentOS 6 and CentOS 7 using Yum
I noticed that on my CentOS 6 box, I was still running nginx 1.0.15. I wanted to upgrade to nginx 1.10.1. However, when I ran sudo yum update nginx, it showed that there were no Packages marked for Update. Luckily, getting the latest version through Yum is straight-forward and only requires adding a new repo….
Listing Sizes in AWS S3 Buckets
Listing sizes in AWS S3 Buckets Getting the whole bucket size aws s3 ls s3://$BUCKETNAME/ –recursive –human-readable –summarize | tail -n2 Tail is used because otherwise all files will be printed on screen (but you may want that for some reason). Getting the size of a specific directory/file You just need to add the path…
sar output for Yesterday statistics
To check the load: sar -q -f /var/log/sa/sa$(date +%d -d yesterday) To check the CPU status: sar -p -f /var/log/sa/sa$(date +%d -d yesterday) To check the Swap Space usage: sar -S -f /var/log/sa/sa$(date +%d -d yesterday) To check the RAM memory usage: sar -r -f /var/log/sa/sa$(date +%d -d yesterday)