Install MySQL on CentOS 7

How to Install MySQL on CentOS 7?

To install MySQL on CentOS 7, the “mysql-server” package is required after enabling the repository of MySQL 8.0. It installs all dependencies in the system.

Bash Heredoc Explained

Bash Heredoc | Explained

We can use the Bash heredoc method in Linux to execute multiple lines of commands and data simultaneously, which is explained in this guide with examples.

How to do port scan in Linux

How to do a Port Scan in Linux?

Multiple methods are used to do a port scan in Linux, which are nmap, netcat, ss, netstat, lsof, and telnet commands. All these are practically demonstrated here.

How to Change the SFTP Port

How to Change the SFTP Port?

To change the SFTP port in Linux, use the given command for setting the rules, change the port in the “ssh_config” file and restart the ssh service.

Why and How to change default SSH port

Why and How to Change Default SSH Port?

The SSH default port is changed due to security reasons, and to change it, edit the ssh configuration file “/etc/ssh/sshd_config” or run the “sed” command.

How to Change the SSH Port in Linux

How to Change the SSH Port in Linux

In Linux, to change the ssh port, update the firewall setting, change the port number in the “ssh_config” file, and restart the ssh service.

Apache Commands You Should Know

Apache Commands You Should Know

In Linux, various commands are used for apache services, such as starting, restarting, stopping, testing configuration, virtual host, etc.

How to Check if Crontab is Working?

How to Check if Crontab is Working?

To check crontab services, “status” utility, “ps aux”, “pgrep”, and “tail” commands are used. It provides currently active/dead running processes in the system.

Understanding the etcpasswd File in Linux

Understanding the /etc/passwd File in Linux

The /etc/passwd file holds the information of “Username”, “Password”, “UID”, “GID”, “GECOS”, “Home directory”, and “Login shell” of the system and normal users.

usermod Command in Linux Explained

usermod Command in Linux | Explained

The “usermod” command is used to change the attributes of the existing user of the system. Moreover, it needs the root user privileges to apply the new changes.

lsmod Command in Linux Explained

lsmod Command in Linux | Explained

The “lsmod” command reads the “/proc/modules” files as input and displays the currently loaded kernel modules in an organized format.

Dmesg Command in Linux Explained

dmesg Command in Linux | Explained

In Linux, the dmesg command is a utility to display the Kernel messages related to the Kernel operations, which can be used with different options.

Linux Get User by ID

Linux Get User by ID

In Linux, the User ID (UID) stores all the user’s information which can be used with different commands like id, cat, getent, and awk to find users information.

How to Find Linux Files With Extensions

How to Find Linux Files With Extensions?

To find any Linux file with an extension in Linux, “find”, “locate”, and “grep” commands are used, which search the files from the PWD or the specified location.

Fix ssh connection refused port

Fix: ssh connection refused port 22

The “ssh connection refused port 22” error can be resolved by installing “OpenSSH” packages or checking the active status of SSH services or port numbers.

How to Count Lines in a Linux File

How to Count Lines in a Linux File?

To count the lines in a Linux file, different methods are used, like, wc (word count), grep, sed, awk, nl (number of lines), and perl commands.

How Many Threads Per Core

How Many Threads Per Core?

Threads provide an execution path within the process that can be found using the “lscpu” command in the terminal. Read this article for more details.

add user to docker group

How to Add User to Docker Group?

A docker is an open-source application managing platform where users can be added to the docker group using the “sudo usermod -aG docker user-name” command.

How to List Users in Linux

How to List Users in Linux?

To list users in Linux, run the “cat /etc/passwd” command. Use “cat /etc/passwd | cut -d: -f1”, and “awk -F: ‘{ print $1}’ /etc/passwd” commands for user names.

How to Create Groups in Linux?

How to Create Groups in Linux?

To create a normal group in Linux, use the “sudo groupadd ” command, and for creating a system group, use the “sudo -r groupadd ” command

wc Command in Linux Explained

wc Command in Linux | Explained

In Linux/UNIX, the wc command counts the words, number of lines, Characters, maximum characters in a line, and size in bytes for the files.

pipe-Linux-Command-Explained

pipe Linux Command | Explained

In Linux, the pipe command is used to combine two or more commands where the first command’s output is used as input to the next command

How to List Groups in Linux

How to List Groups in Linux?

To list the groups in Linux, use the “groups”, “/etc/group”, “id”, and “getent” commands. This guide serves extensive approaches to list groups in Linux.

How to check Services running in linux

How to Check Services Running in Linux

Run the command “systemctl list-units –type=service –state=running” or “service –status-all | grep ‘\[ + \]’” to check the running service on Linux.

Install KVM on Ubuntu 22.04

How to install KVM on Ubuntu 22.04

To install KVM on Ubuntu 22.04, first enable Virtualization and install a CPU checker. Then install KVM and other dependencies and create the virtual machine.

export-command-linux-explained

Export command in Linux | Explained

The export command is one of the built-in commands of the bash shell which is used to export the environmental variables from the parent shell to the newly created child shell. In this write-up, we have discussed the export command and explained its utilization in Linux with the help of examples. We also explained the options used along with the export command.

delete-groups-groupdel-command-linux

How to delete groups with groupdel command in Linux

The groupdel command is used to delete the user group when is no more need of the group and also remove from the file /etc/group. This command doesn’t delete the configuration files related to the group but deletes all the entries and account files related to that group. In this article, we have discussed the usage of the groupdel command in Linux to delete the groups with the help of examples.

How to run multiple commands in parallel in Linux Mint

How to run multiple commands in parallel in Linux Mint

There are several ways to run multiple commands in parallel in Linux Mint; using logical operator, using pipe operator, using semicolon and using bash scripting. Running and executing one command at a time on Linux Mint takes a long time and is not advised especially if you have a short time. This article is a detailed guide on how to run multiple commands in Linux Mint. Four different approaches are mentioned in this tutorial.

How to install VirtualBox guest additions on Debian 11

How to install VirtualBox guest additions on Debian 11

VirtualBox guest addition installs the tools which enhance the functionality of Debian 11, it has a lot of features discussed in this write-up. This write-up describes the simple procedure of installing the VirtualBox guest additions on Debian 11 by mounting the ISO image of guest addition automatically as well as manually.