Linux: Log Suspicious Martian Packets / Un-routable Source Addresses

To log suspicious Martian packets (packets with un-routable source addresses) in Linux, you can modify the kernel’s syslog configuration. Here is an example of how to do it: Edit the /etc/sysctl.conf file and add the following line: net.ipv4.conf.all.log_martians = 1 Save the changes and reload the sysctl configuration: sysctl -p Configure the syslog daemon to … Read more

Ubuntu Copy File Command

In Ubuntu, the cp command is used to copy files and directories. Here’s the basic syntax of the cp command: cp [OPTION]… SOURCE DEST Where SOURCE is the file or directory that you want to copy, and DEST is the destination directory where you want to copy the file to. For example, to copy a … Read more

Explain: {,} in cp or mv Bash Shell Commands

In the cp or mv commands in bash shell, {,} is used to specify multiple target destinations for the source file(s). It’s a brace expansion feature in bash, which allows you to repeat a command multiple times with different arguments. For example, if you want to copy a file “file1.txt” to two different directories, you … Read more

FreeBSD Show Disk Quota Limits Command

To show disk quota limits on a FreeBSD system, you can use the quota command. This command displays the disk usage and limits for users and groups. For example, to display the disk quotas for a specific user, run the following command: quota username To display the disk quotas for all users on the system, … Read more

curl Command Resume Broken Download

To resume a broken download using curl, use the “-C -” option in your curl command, which tells curl to continue downloading from where it previously left off. For example: curl -C – -o downloaded_file.zip http://example.com/downloads/large_file.zip This will start downloading large_file.zip from http://example.com/downloads/ and save it as downloaded_file.zip on your local machine. If the download … Read more

Fix Indexed, Though Blocked By Robots.txt Google Search Console

Before we fix this lets understand difference between Indexed, though blocked by robots.txt and Page indexing Blocked by robots.txt   “Indexed, though blocked by robots.txt” and “Page indexing blocked by robots.txt” refer to different states of a web page’s indexing status with respect to a search engine’s web crawler. “Indexed, though blocked by robots.txt” means … Read more

Fix Page indexing Blocked by robots txt Google search Console

Learn How To fix the “page indexing error blocked by robots.txt” error, you can follow these steps: Locate the “robots.txt” file: This file is usually located in the root directory of your website, e.g., “https://www.gomahamaya.com/robots.txt”. You can access it by entering the URL in your browser. change your website URL with gomahamaya.com Edit the “robots.txt” … Read more

CentOS: rpmdb: PANIC: fatal region error detected; run recovery error and solution

The error “rpmdb: PANIC: fatal region error detected; run recovery” occurs when the RPM database becomes corrupted. This can happen for various reasons, including system crashes, disk failures, or incomplete transactions. To resolve this issue, you can run the rpm –rebuilddb command as follows: Stop any applications that might be accessing the RPM database. Backup … Read more

CentOS Install Java SDK using yum Command

To install the Java SDK on a CentOS system using the yum command, follow these steps: Import the Oracle GPG key by running the following command: sudo rpm –import https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 Create a file called /etc/yum.repos.d/java.repo with the following content: [ol7_developer_EPEL] name=Oracle Linux $releasever Developer (EPEL) baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer/EPEL/x86_64/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1 Update the package index by running … Read more