Articles by Deepak Prasad
How to restrict or allow ssh only from certain users, groups or hosts in Linux
How to allow SSH for root login only from specific host or IP address? How to configure and restrict SSH to permit login only for certain users and/or groups?
How to set up GFS2 with clustering on Linux ( RHEL / CentOS 7 )
configure and setup gfs2 file system with pacemaker cluster on rhel or centos 7 linux. configure gfs2 fs resource constraint using clvmd and dlm
Solved: Boot into rescue mode without password (RHEL/CentOS)
difference between rescue mode and emergency mode in linux, rescue mode in linux linux emergency mode repair, rescue mode in linux, grub rescue mode
Spectre v2 mitigation leaves CPU vulnerable to RETBleed attacks in Ubuntu
The other day I noticed this specific message on the console of Virtual Box VM installed with Ubuntu 22.04 RETBleed: WARNING: Spectre v2 mitigation leaves CPU vulnerable to RETBleed attacks, data leaks possible! As you …
Step-by-Step: RHEL/CentOS 8 installation with screenshots
Step by Step Installation Guide for Red Hat Enterprise Linux 8 Beta. Install RHEL 8 Beta with screenshots. How to install RHEL 8 Beta Linux with images.
How to Set Up a WordPress Reverse Shell
Step by Step instructions to setup wordpress reverse shell using 3 different methods. Setup reverse shell using metasploit framework, vulnerable plugins, editing wordpress themes.
How to Compute Square in Java
There are four different ways to compute square of a number in Java, Using multiplication operator *, Using Math.pow() function, Using BigInteger.pow() function, Using Apache Commons Math API
How to capture serial console dump from HPE iLO4 using VSP (with screenshots)
In this article I will share the steps to capture serial console dump from iLO4 using VSP with screenshots which can help you troubleshoot RSOD issue in BIOS
How to check and set Java timezone (update tzdata for openJDK) using tzupdater
Steps to set java timezone using tzupdater update tzdata for openjdk in CentOS RHEL SLES. Check current tzdayta version in JRE java -jar tzupdater.jar -V
How to prevent user from using old password (or re-using) again in Linux
How to prevent user from using old password or reusing old password while providing new password in CentOS/RHEL 7 Password has been already used. Choose another
How to generate sosreport in rescue mode on Software RAID (RHEL/CentOS 7)
How to generate sosreport in rescue mode linux. Fix sosreport command not found. Boot using RHEL/CentOS DVD to rescue mode in linux with software raid linux
Fix: the domain status of virtual connect manager is not ok update will not continue
Earlier I was getting an error "The domain status of Virtual Connect Manager is not OK Update will not continue" while performing firmware upgrade of my Virtual Connect wherein one of my VC module had a hardware error …
How to configure port forwarding in VirtualBox for NAT Networking
Configure port forwarding in virtualbox NAT Networking using command line CLI using VboxManage GUI. ssh into virtualbox from windows port forwarding computer
NumberFormat Class in Java Explained
Some of the task performed by the NumberFormat class in Java are Formatting Numbers, Setting number of Digits in Fraction part, Rounding Numbers, Formatting Percentage, Formatting Currency
How to PROPERLY boot into single user mode in RHEL/CentOS 7/8
linux single user mode, centos 7 single user mode, rhel 7 single user mode, single user mode linux, how to boot into single user mode linux, centos single user mode, single user mode
5 ways to check if a string is an integer in Python
When operating with numbers and strings, many times while fetching the data from the text box, we fetch it as a string. Now, on back-end this data may be
How to Paginate with Mongoose in Node.js [Practical Examples]
It is a traditional way to paginate with mongoose. Here, It simply uses limit and offset in SQL queries to paginate the data from database. If you are working
How to implement 3 stacks in an array
A Stack is a Last in First out(LIFO) data structure. Push and pop operations are used for insertion and deletion of a value from the stack respectively. In
Find merge point of two lists in Java
In this article we explored three different methods which can be used in Java to find merge point of two lists i.e Brute Force Approach, Marking Node as visited and Using HashSet
How to find a height of a tree data structure in Java
The Tree is a non linear data structure consisting of nodes and edges. Depending upon the type of tree, it can have 0 or more child nodes. There are two ways to calculate the height of a tree using Recursive Approach or …
4 ways to convert char to int in Java
In this tutorial, we covered four different approaches to convert char to int in Java, Using ASCII Values, Integer.parseInt() method, Character.getNumericValue() method and Subtracting '0'
How to get sublist from a list in Java
In order to get sublist either in an ArrayList or LinkedList, we have to use the sublist() method which is a method of AbstractList class.
How to split String into Array
In this tutorial we will cover multiple examples to understand how to split string into array for different scenarios
How to return an Array in Java [Practical Examples]
There are three different ways to return an array from a function in Java as listed below: Return an array of primitive type, Return an array of objects, Return a multidimensional array
How to convert Set to list in Java [Practical Examples]
There are several ways to convert the set to list in java as listed below. Using looping, ArrayList Constructor, LinkedList Constructor, List.addAll() Method, List.copyOf() method, stream API, Apache Commons Collections
How to convert String to Date in Java [Practical Examples]
There are five ways to convert a String to Date in java as listed below. Using SimpleDateFormat Class, LocalDate Class, DateTimeFormater Class, Instant Class, Apache Commons Lang - DateUtils
How to Compare Characters in Java
There are several ways to compare characters in java as listed below, Using Relational Operators, Using Character.compare(), Using Character.hashCode(), Using compareTo() method, Using equals() method, Using charValue() …
How to Copy a File in Java [Practical Examples]
The list below shows five different ways in which we can copy a file in Java. Using FileInputStream and FileOutputStream Using Paths and Files Using RandomAccessFile Class Using FileChannel Using Files.copy()
How to check if file exists in Java [Practical Examples]
In Java, there are three different ways to check if file exists or not such as Using exists method of Legacy I/O File class, Using isFile method of File class, Using exists method of NIO File class
How to get Current Date in Java
The list below shows eight different ways to get current date in Java Using java.util.Date, java.util.Calendar, java.time.LocalDateTime, java.time.LocalDate, java.time.Year, java.time.MonthDay, java.time.OffsetDateTime, …

