Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
How to unzip a zip file using the Linux and Unix bash shell terminal
Here's how you can unzip a zip file using the Linux and Unix bash shell terminal:rn rn Open a terminal and navigate to the directory where the zip file is located. rn Use the following command to unzip the zip file: rn rn rn rn unzip <file name>. zip rn rn rnReplace <file name> with the
How to login with root password when using Ansible tool
Here's how you can log in to a remote system as the root user using the Ansible tool:rn rn Open a terminal and navigate to the directory where your Ansible playbook is located. rn Edit the Ansible playbook file to specify the ansible_user as root . For example: rn rn rn - name: Log in to remote syst
How to use the cURL command to do a POST data to fields on Linux or Unix
Here's how you can use the cURL command to make a POST request and send data to fields on Linux or Unix:rn rn Open a terminal and navigate to the directory where you want to make the cURL request. rn Use the following template to make a cURL POST request and send data to fields: rn rn rn rn curl -X
How to list VM images in LXD (Linux Containers)
Here's how you can list the available VM images in LXD (Linux Containers):rn rn Open a terminal and log in to your Linux system. rn Launch the LXD client using the following command: rn rn rn rn lxc launch ubuntu: rn rn rn rn Use the following command to list the available VM images: rn rn rn rn lxc
chrome://net-internals/#dns – Clear or flush DNS Cache on Chrome
Here's how you can clear or flush the DNS cache on Google Chrome:rn rn Open Google Chrome and enter chrome://net-internals/#dns into the address bar. rn Click on the "Clear host cache" button under the "DNS" section. rn Wait for the message "DNS cache cleared" to appear. rn rnYour DNS cache in Googl
How to disable ssh motd welcome message on Ubuntu Linux
Here's how you can disable the SSH Message of the Day (MOTD) welcome message on Ubuntu Linux:rn rn Open a terminal and log in to your Ubuntu Linux system. rn Create a new file in the /etc/pam.d directory using the following command: rn rn rn rn sudo nano /etc/pam.d/sshdrn rn rn rn Add the following
How To Install Nginx web server on Alpine Linux
Here's how you can install the Nginx web server on Alpine Linux:rn rn Open a terminal and log in to your Alpine Linux system. rn Update the package index: rn rn rn rn apk update rn rn rn rn Install Nginx using the following command: rn rn rn rn apk add nginxrn rn rn rn Start the Nginx service using
How to count total number of word occurrences using grep on Linux or Unix
Here's how you can count the total number of word occurrences using grep on Linux or Unix:rn rn Open a terminal and navigate to the directory containing the file you want to search. rn Use the following command to count the total number of occurrences of a word: rn rn rn rn grep -o -w "<word>"
How to upload ssh public key to as authorized_key using Ansible
Here's how you can upload an SSH public key as an authorized_key using Ansible:rn rn Create a new playbook in Ansible: rn rn rn rn nano upload_key.ymlrn rn rn rn Add the following content to the playbook to upload an SSH public key: rn rn rn rn - name: Upload SSH public key rn hosts: <host_group&
How to append text to a file when using sudo command on Linux or Unix
Here's how you can append text to a file when using the sudo command on Linux or Unix:rn rn Open a terminal and navigate to the directory containing the file you want to append text to. rn Use the following command to open the file with the sudo privilege: rn rn rn rn sudo nano /path/to/filern rn rn
How to extract multiple tar ball (*.tar.gz) files in directory on Linux or Unix
Here's how you can extract multiple tar.gz files in a directory on Linux or Unix:rn rn Navigate to the directory containing the tar.gz files: rn rn rn rn cd /path/to/directoryrn rn rn rn Use the following command to extract all tar.gz files in the directory: rn rn rn rn for i in *.tar.gz; do tar xvf
How to configure Nginx SSL/TLS passthrough with TCP load balancing
Here's how you can configure Nginx to perform SSL/TLS passthrough with TCP load balancing:rn rn Install Nginx: rn rn rn rn sudo apt - get update rnsudo apt - get install nginxrn rn rn rn Create a new Nginx configuration file in the sites-available directory: rn rn rn rn sudo nano /etc/nginx/sites-av
How to install tinc VPN on Ubuntu Linux 16.04 LTS
Here's how you can install tinc VPN on Ubuntu Linux 16.04 LTS:rn rn Update your system: rn rn rn rn sudo apt - get update rnsudo apt - get upgradern rn rn rn Install tinc VPN: rn rn rn rn sudo apt- get install tincrn rn rn rn Create a tinc network: rn rn rn rn sudo mkdir /etc/tinc/<network_name&g
How to allow root login from one IP address with ssh public keys only
Here’s how you can allow root login from one IP address using SSH public keys in a Linux environment: n n Make sure the target machine has an SSH server installed, such as OpenSSH. n On the target machine, open the SSH configuration file, typically located at /etc/ssh/sshd_config . n Find the
Linux prevent unprivileged users from viewing dmesg
You can prevent unprivileged users from viewing the dmesg logs on Linux by using the following steps:rn rn Edit the sysctl configuration file: rn rn rn rn sudo nano /etc/sysctl.confrn rn rn rn Add the following line to the end of the file: rn rn rn rn kernel.dmesg_restrict = 1rn rn rn rn Save and cl
How to delete and remove files on SUSE Enterprise Linux
To delete files on SUSE Enterprise Linux, you can use the "rm" command in the terminal. Here's the basic syntax:rn rn rn rm <file_name>rn rn rnTo remove a directory and its contents, you can use the "-r" or "--recursive" option:rn rn rn rm -r <directory_name>rn rn rnKeep in mind that the
How to prevent sed -i command overwriting my symlinks on Linux or Unix
The sed -i command on Linux and Unix systems can overwrite symbolic links (symlinks) if not used with caution. To prevent sed -i from overwriting symlinks, you can use the following methods: n n Use a temporary file:n n n sed 's/old-text/new-text/g' inputfile > tempfile && mv tempfile inp
How To Install Linux, Apache, MySQL, PHP (LAMP) Stack on Debian 9 Stretch
Here are the steps to install the LAMP stack on Debian 9 Stretch:rn rn Install Apache Web Server:rn rn rn sudo apt - get update rnsudo apt - get install apache2rn rn rn Install MySQL Server:rn rn rn sudo apt- get install mysql-serverrn rn rnDuring the installation, you'll be prompted to set a root p
How to upgrade from Debian Linux 8 Jessie to Debian 9 Stretch using command line over ssh based session
To upgrade from Debian Linux 8 Jessie to Debian 9 Stretch using command line over an SSH-based session, follow these steps:rn rn Log in to your Jessie system using SSH:rn rn rn ssh user @hostname rn rn rn Update the package index:rn rn rn sudo apt - get update rn rn rn Upgrade the system to the late
Ubuntu: /dev/xvda2 should be checked for errors
To check for errors on /dev/xvda2 in Ubuntu, you can use the fsck (file system check) command. First, you need to unmount the file system:rn rn rn sudo umount /dev/xvda2rn rn rnThen, run the fsck command:rn rn rn sudo fsck -f /dev/xvda2rn rn rnThe -f option forces a check even if the file system is
2,685 guides published.
