You can use a combination of terminal commands like awk, sort, uniq, and cut to analyze an Apache log file and find out which files are called the most and the bandwidth they are using.
Pinakin Patel
PHP Web Developer
using curl to fetch a file using sftp with password in command
If you need to download a file using SFTP from the command line, you should use the sftp or scp commands.
Guide to Changing Directory Permissions to 755 and File Permissions to 644
Tutorial on how to change the permissions of all files and directories within a directory tree on Linux
How to get the sending IP addresses from the references in your SPF record
If you use SMTP services like Mailjet or Amazon...
Installing and using ApacheTop on centos
You can check if epel-release is installed on...
How to create lighthouse reports in batch using linux and chrome cli headless
Learn how to run lighthouse reports using chrome headless using a linux laptop.
Creating a timelapse video from gopro timelapse images using ffmpeg
Creating thumbnails from video files
Shell command to tar.gz directory excluding certain files/folders
This will allow you to tar.gz a folder and not add the blog and other folders into it.
How to clear down a log file on linux
if you need to clear down a log file on linux as...
SCP Copy file from Remote host to local host
To copy a file using SCP from a remote host you can use the following
Using GREP to search for a file using a string
This command will search in the recursively in the includes folder for any file type which contains the string “string_to_find” in its content. This will not find the string in filenames.
Listing and extracting specific content from a tar.gz file
I usually look this up everytime someone tells me to check a database back from the cpanel daily/weekly backup routine. By default cpanel backs up to the /backup folder.