How To Remove Duplicate Array Values In Php Tecadmin

Use PHP array_unique() function to remove all the duplicate values form an array. This function takes input of an array and return another array without duplicate values. Here is an sample example: Expected output:

November 28, 2022 · 1 min · 34 words · Kathleen Martin

How To Reset Jenkins Admin User Password Tecadmin

In this tutorial, we will learn how to reset the Jenkins admin password in a few simple steps. Steps to Reset Jenkins Admin Password Follow the below steps to recover admin account access to the Jenkins portal. Conclusion In this tutorial, we learned how to reset the Jenkins admin password in a few simple steps. We hope that this tutorial has helped you understand how to reset the Jenkins admin password and that you are now able to access your Jenkins instance....

November 28, 2022 · 1 min · 165 words · Tim Avery

Java Hashmap How To Get Value From Key Tecadmin

The HashMap class is available under the java.util package. It is pretty similar to HashTable, but the HashMap is unsynchronized and also allows to stole one null key. In this tutorial, you will learn Java examples to get value from a HashMap based on a defined key. Get Values from Java HashMap The Entry interface provides a number of methods to access key values from a HashMap. The Entry.getValue() method returns the value based on the provided key....

November 28, 2022 · 1 min · 195 words · Deanna Monsen

Running Cron Job Every 12 Hours Twice A Day Tecadmin

For example: The above script will run at 12 AM (00:00:00) and 12 PM (12:00:00) every day. As you can see that using */12 executes cron exactly at 12AM and 12PM. But, sometimes you may need to run crontab at different times like 10 AM and 10 PM. In that case, you need to set hours like 10,22. See the below example: You can change hours of your choice like 09,17 to execute cron at 09 AM and 05 PM....

November 28, 2022 · 1 min · 94 words · Barbara Kunzler

Adding A New Ssh Key In Github Tecadmin

Follow the below steps for adding a new ssh key in Github account. 1. Check Available SSH Keys Log in to your Unix/Linux system and open a terminal. Check ~/.ssh/ directory for existing ssh key files in your system. If the system already have key pair files, you can use them to configure with Github. In my case, the files already exists. 2. Generate a New SSH Key If no SSH key pair is available, use the ssh-keygen command-line tool to generate a new key....

November 27, 2022 · 2 min · 228 words · James Lefeber

An Advance Bash Script For Mysql Database Backup Tecadmin

This script is available on our Github account with all supporting file. You can simply download the script and run it on your server. Use the following steps to use this script and configure backups within 5 min. Step 1 – Clone this Repository Download this repository put files under /etc/mydumpadmin directory. Alternatively, you may also clone this repository under /etc directory using the following commands. Step 2 – Configure Setup Step 3 – Execute Backup Script Set the execute permission on shell script and run this as following commands....

November 27, 2022 · 1 min · 120 words · Caleb Windsor

Bash How To Get Future Date And Time Tecadmin

The date command provides an option to display the future dates as described. Let’s understand this with some examples: Display current date: Simply type “date” to display the current date and time of system.date Thu Sep 22 03:58:36 UTC 2022 Date after 10 days: What will be the date after 10 days? The below command will show you the desired results:date -d “+10 days” Sun Oct 2 03:58:48 UTC 2022 Date after 3 months: Similarly to find the date after 3 months, type:date -d “+3 months " Thu Dec 22 03:58:58 UTC 2022 Date after 1 year: What will be the date just after 1 year?...

November 27, 2022 · 1 min · 152 words · Roberto Lyndon

Bash Sequence Expression Define Range Tecadmin

The syntax of Sequence Expression is: Here the start and end values are mandatory and can be either characters or integers. Next, the increment value is optional and if we use it then it must be separated from the End value with two dots. If we do not use an increment value then the default value would be 1. Sequence Expression Examples in Bash Let’s take some examples of printing the sequence values in bash shell....

November 27, 2022 · 1 min · 115 words · Rebecca Schaupp

How To Add Swap Space On Debian 10 Tecadmin

This tutorial will help you to ADD Swap memory on Debian 10 Buster Linux system. Add Swap in Debian 10 Use the below steps to create and enable Swap memory on your Debian system via command line. 1. Check Current Swap First of all, Make sure your system have no Swap memory configured on your system. You can check if by running one of the below commands. 2. Create Swap file on Debian Lets create a file to use for swap in system of required size....

November 27, 2022 · 2 min · 300 words · Elaine Bowman

How To Add Swap Space On Debian 11 Tecadmin

This tutorial will help you to Add Swap on Debian 11 Bullseye Linux system. How to Create Swap in Debian 11 Use the below steps to create and enable Swap memory on your Debian 11 system via command line. Make Swap Permanent After running above commands, Swap memory is added to your system and operating system can use when required. But after reboot of system swap will deactivate again. You can make it permanent by appending the following entry in /etc/fstab file....

November 27, 2022 · 1 min · 179 words · Diane Parker

How To Find Large Files In Linux Tecadmin

Using the find command A find command is a powerful tool for searching for files on your system. It can be used to find files based on various criteria, such as file name, size, ownership, and permissions. To find large files in Linux using the find command, you can use the following syntax: For example, to find all files larger than 100 MB in the /home directory, you can use the following command: The size can also be passed in MB, or GB, for example, to search files larger than 100 MB use 100m with -size parameter....

November 27, 2022 · 3 min · 447 words · David Zehner

How To Install And Use Imapsync On Centos Fedora Tecadmin

Read this => How To Install Postfix Mail Server on Ubuntu Step 1 – Install Imapsync Imapsync package is available under EPEL package repository. First make sure you have added EPEL on your system or install it first. Now, install imapsync package using following command. At this stage, your system is ready for migration all data from one email account to other email accounts using IMAP. Step 2 – Transfer Emails with IMAP So you are ready for migration....

November 27, 2022 · 1 min · 160 words · Charlie Sherman

How To Install Ansible On Debian 9 Stretch Tecadmin

This tutorial will help you to install Ansible on Debian 9 (Stretch) systems. Step 1 – Configure SSH Access You can configure key based ssh for the remote Linux Ansible hosts. So password will not be required for SSH. Ansible also allows you to use a password for ssh, but key-based ssh is more secure. Generate a ssh key pair on your Ansible server: Copy the public key to all your remote hosts you need to connect via this ssh key....

November 27, 2022 · 2 min · 422 words · Gonzalo Young

How To Install Apache Mysql Php Lamp Stack On Ubuntu 20 04

This article will help you to Install Apache 2.4, MySQL 8.0 and PHP 7.4 on Ubuntu 20.04 LTS (Focal Fossa) system. Let’s begin the installation of LAMP stack your Ubuntu machine. Prerequisites You must have root or sudo privileged user access to your Ubuntu 20.04 system. Login to your Ubuntu system using GUI for Desktop and SSH for the server edition. Now upgrade current packages to latest version. Follow the initial server setup instruction to get ready your system for working....

November 27, 2022 · 3 min · 541 words · David Henriques

How To Install Apache Hadoop On Ubuntu 22 04 Tecadmin

The following step-by-step installation guide will get you through the entire process from downloading the software to configuring the server with ease. In this article, we will explain how to install Apache Hadoop on Ubuntu 22.04 LTS system. This can be also used for other Ubuntu versions. Step 1: Install Java Development Kit Java is a necessary component of Apache Hadoop, so you need to download and install a Java Development Kit on all the nodes in your network where Hadoop will be installed....

November 27, 2022 · 3 min · 490 words · Beatrice Norris

How To Install Apache Kafka On Ubuntu 18 04 16 04

This tutorial will help you to install Apache Kafka on Ubuntu 18.04, and Ubuntu 16.04 Linux systems. Step 1 – Install Java Apache Kafka required Java to run. You must have java installed on your system. Execute the below command to install default OpenJDK on your system from the official PPA’s. You can also install the specific version of from here. Step 2 – Download Apache Kafka Download the Apache Kafka binary files from its official download website....

November 27, 2022 · 3 min · 568 words · Dawn Flores

How To Install Mysql On Debian 10 Tecadmin

Step 1 – Prerequisites Login to your Debian 10 system using shell access. For remote systems connect with SSH. Windows users can use Putty or other alternatives applications for SSH connection. Run below commands to upgrade the current packages to the latest version. Step 2 – Configure MySQL PPA MySQL team provides official MySQL PPA for Debian Linux. You can download and install the package on your Debian system, which will add PPA file to your system....

November 27, 2022 · 2 min · 360 words · Jesus Chunn

How To Install Oracle Java 11 On Debian 9 Stretch Tecadmin

Step 1 – Prerequsities Before beginning the installation login to shell as the sudo user and install some required packages on your Debian system. Now, add the following PPA to your Debian system. This PPA contains a package oracle-java11-installer having the Java installation script. Step 2 – Install Java 11 on Debian 9 Then install Java 11 using the script provided in these packages. This script downloads the Java archive from the official site and configures on your system Also, install the following package to configure Java 11 as default Java version on your Debian 9 system....

November 27, 2022 · 1 min · 129 words · Roberto Camarillo

How To Install Python 3 9 On Amazon Linux 2 Tecadmin

Prerequisites Installing Python from the source code requires a GCC compiler. So must have installed the required development libraries first. Open a terminal on your system install prerequisites for Python: Read: How to Use SSH to Connect Remote Linux Server Step 1 – Download Python 3.9 Visit Python official download page and download the required Python on your system. Alternatively, You can use the following command to download Python 3.9 on a local machine....

November 27, 2022 · 2 min · 270 words · Conrad Groce

How To Install Redis On Ubuntu 18 04 16 04 Lts Tecadmin

This tutorial will help you with the installation of Redis server along with PHP Redis PHP extensions on an Ubuntu 19.04, 18.04 LTS, 16.04 LTS and 14.04. Step 1 – Prerequsities Log in to your system with sudo privilege account using shell access, to which you need to install Redis. Update the apt-get packages index files and also update existing packages to the newest versions by using the following commands:...

November 27, 2022 · 2 min · 290 words · Thomas Markey