4 Examples of Python 3 Len function

The built-in len(obj) function is used to find the lengths of objects by calling their own length methods in python. In this article, we will cover how to use len function to get the length of string, list, tuple, dict. Python counts the items in a list starting with one, so we shouldn’t run into […]

3 Examples of Python 3 list len() function

A Python list is a collection of items in a particular order. We can make a list that includes the letters of the alphabet, the digits from 0–9, or the names of all the people in our family. We can put anything we want into a list, and the items in our list don’t have […]

6 Examples of find exec rm Command to Delete Files

Linux find command is a powerful tool that can be used to locate and manage files and directories based on a wide range of search criteria. This post will cover how to delete files with find exec rm in Linux. However, some solutions in this article can be dangerous if we don’t correctly use them. […]

Understanding SSH known_hosts File

The known_hosts file contains a list of public keys for all the hosts to which the user has connected with ssh. It is used for verifying the identity of other systems. Ssh can automatically add keys to the user’s file, but they can be added manually as well. In SSH, public key cryptography is used for […]

3 ways to fix Host key verification failed

Whenever we connect to a server via SSH, that server’s public key is stored in our home directory. The file is called known_hosts. When we reconnect to the same server, the SSH connection will verify the current public key matches the one we have saved in our known_hosts file. If the server’s key has changed […]

3 Ways to Check IP address in Linux

IP addresses are used in a system for communication. Knowing the IP address of our system can be useful in many situations. It is a numerical label such as that is connected to a computer network that uses the Internet Protocol for communication. An IP address serves two main functions: network interface identification and […]

2 Ways to Check DNS Speed

DNS is a system by which a browser or other software converts a domain name to a IP4 or IP6 address. Each time we access a website the browser needs to convert the domain name to a IP4/IP6 address using a DNS server. The DNS server configured on our computer could be automatically selected by […]

How to use yum to list All versions of Package

By default, yum installs the latest version of a package among the all versions available in enabled repositories. Often it is required to install not the latest one, but some specific version or downgrade the already installed package to an older version. In this post, we will show how to make yum list all available […]

2 Examples to Create New User with home directory in Linux

By default, a user’s home directory is usually located at /home/username where “username” is the name of the user account. However, we can actually place a user’s home directory just about anywhere you’d like. Linux gives us the option to choose a location for the home directory whenever we are creating a new user. To […]

2 Ways to Disable or Block Ping in Linux

Ping is used to check if the machine is up and is connected to the network and working well on that particular network. The basic methodology here is that a network packet is sent to the machine if the machine is up it will answer with a response. If the machine is down and not […]