Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
CentOS / RHEL: Yum Lock Package Version At a Particular Version
In CentOS/RHEL, you can use the yum versionlock plugin to lock a package version at a particular version. This will prevent the package from being upgraded, even if a newer version is available in the repository. Here's how you can lock a package version:rn rn Install the yum-versionlock plugin:
Linux / Unix: Check Last Time User Logged In On The System
In Linux/Unix, you can use the last command to check the last time a user logged in on the system. n By default, the last command shows the list of all users who have logged in to the system, with the most recent login listed first. To see the last time a specific user logged in, you can run the fol
Unix / Linux: Check New Files In File System /var/www/uploads/
To check for new files in the /var/www/uploads/ directory in Unix/Linux, you can use the following command:rn rn rn ls -ltr /var/www/uploads/ | tail rn rn rnThe ls -ltr command lists the contents of the directory in long format and sorts the output by modification time ( -t ) in reverse ( -r ) order
HowTo: Prevent Yum From Upgrading The Kernel On a CentOS / Red Hat Enterprise Linux
To prevent yum from upgrading the Linux kernel on a CentOS/Red Hat Enterprise Linux system, you can use the following method:rn rn Create a file in the /etc/yum.conf.d/ directory with a descriptive name, such as kernel-updates.conf . rn Add the following lines to the file: rn rn rn rn exclude=kernel
Increase NFS Client Mount Point Security For a Web-Server noexec, nosuid, nodev Options
The noexec , nosuid , and nodev mount options can be used to increase the security of NFS client mount points. These options control the execution of executable files, set-user-id (SUID) files, and device files, respectively. Here is how you can mount an NFS share with these options on a web serv
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:rn rn Edit the /etc/sysctl.conf file and add the following line: rn rn rn rn net.ipv4.conf. all .log_martians = 1 rn rn rn rn S
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:rn rn rn cp ... SOURCE DESTrn rn rnWhere 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 c
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 diff
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:rn rn rn quota usernamern rn rnTo display the disk quotas for
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:rn rn rn curl -C - -o downloaded_file. zip http://example.com/downloads/large_file. zip rn rn rnThis will start downloading larg
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
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 browse
How To: Update gcutil / gcloud Components On a Linux / Unix / OS X
To update the gcutil and gcloud components on a Linux, Unix, or OS X system, follow these steps:rn rn Open a terminal window. rn Run the following command to update the gcloud component: rn rn rn rn gcloud components update rn rn rn rn Run the following command to update the gcutil component: rn rn
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. n To resolve this issue, you can run the rpm --rebuilddb command a
CentOS Install Java SDK using yum Command
To install the Java SDK on a CentOS system using the yum command, follow these steps: n n Import the Oracle GPG key by running the following command: n n n n sudo rpm -- import https : //yum.oracle.com/RPM-GPG-KEY-oracle-ol7 n n n n Create a file called /etc/yum.repos.d/java.repo with the following
CentOS Install Lighttpd Web-server With yum Command
To install the Lighttpd web server on a CentOS system using the yum command, follow these steps:rn rn Update the package index by running sudo yum update . rn Install Lighttpd by running the following command: rn rn rn rn sudo yum install lighttpdrn rn rn rn Start the Lighttpd service using the foll
Minify and Compress CSS & Javascript Files At a Linux/Unix Shell Prompt
rn To minify and compress CSS and JavaScript files at a Linux/Unix shell prompt, you can use the following tools: rn rn rn rn rn For CSS files:rn rn CSSMin: A simple command line tool to minify CSS files. To install it, run the following command: rn rn rn rn npm install -g cssminrn rn rnTo minif
Linux / Unix: chroot Command Examples
The chroot command in Linux/Unix allows you to change the root directory for a process and its child processes. This can be useful in several scenarios, such as system recovery, testing, or sandboxing. Here are some examples of using the chroot command:rn rn Change the root directory to a new loc
How To Set up SSH Keys on a Linux / Unix System
Setting up SSH keys is a secure way to log into a remote Linux/Unix system without entering a password. Here's how to set up SSH keys on a Linux/Unix system:rn rn Generate a key pair: Open a terminal and run the following command to generate a new SSH key pair: rn rn rn rn ssh-keygen -t rsa - b 4096
How to change root password on SUSE / OpenSUSE Linux
To change the root password on SUSE / OpenSUSE Linux, you can use the passwd command. Here's how to do it:rn rn Log in as root: Log in to the system as the root user. rn Run the passwd command: Run the following command in the terminal: rn rn rn rn passwdrn rn rn rn Enter the new password: You will
2,685 guides published.
