Johnson

What is the _eval_ Command in Bash

What is the “eval” Command in Bash?

In Bash, the “eval” command evaluates its arguments as a shell script including “commands”, “variables”, “arithmetic expressions”, and “strings”.

How To Find Last Login on Linux

How To Find Last Login on Linux?

To find the last login on Linux, use the “last”, “lastlog”, “/var/log/auth.log”, “who” and “lastb” commands that display username, terminal, date, and time.

What is Load Average in Linux

What is Load Average in Linux?

Load average is the measure to determine the processes running or waiting to be run on the CPU. Three different methods can find the load average.

How to Run the getent Command in Linux

How to Run the getent Command in Linux?

To run the getent command in Linux, follow the general syntax “getent [Options] [Database] [Key]”. It finds the information from the computer’s databases.

Nmap Xmas Scan

Nmap Xmas Scan

The Xmax scan can be performed using the nmap command in the system. This scan displays the status of the ports of the target machine.

What is dev/null in Linux

What is /dev/null in Linux?

The “/dev/null” is a powerful tool in Linux that allows users to discard unwanted data, suppress error messages, make files disappear, and many more.

Open a Port in CentOS

How to Open a Port in CentOS?

CentOS offers the “firewall-cmd –permanent –add-port=80/tcp” command to open a port in the system. For this, configure the firewall to allow traffic.

Disable IPv6 on CentOS

How to Disable IPv6 on CentOS / RHEL?

CentOS / RHEL offers the “sysctl” configuration file and “kernel” module to disable IPv6 in the system. For this, setting the disable_ipv6 parameter to 1.

How to Configure Docker to Use Proxy

How to Configure Docker to Use Proxy?

To configure Docker to use a proxy, set the proxy information in the Docker daemon configuration file or pass the proxy information as environment variables.

Understanding Ubuntu Hosts File

Understanding Ubuntu Hosts File

Ubuntu offers the “hosts” file to map the hostnames to IP addresses. Ubuntu’s default location of the hosts file is “/etc/hosts”.

How to Clear Bash History in Linux

How to Clear Bash History in Linux?

Linux offers the “history” command with the “c” option to clear the bash history. It removes all the records of previously entered commands in the terminal.

How to Clean YUM Cache in CentoS RHEL

How to Clean YUM Cache in CentOS/RHEL?

CentOS / RHEL offers the “clean all” command to clean the entire YUM cache, including “metadata ”, “package headers”, and “packages” from the system.

mount Command in Linux Explained

mount Command in Linux | Explained

Linux offers the “mount” command to mount the file system or partition on a specific directory. It is useful to access and control the file system from the OS.

NSTAT Linux Command

nstat Linux Command

Linux offers the “nstat” command to display real-time network statistics in the terminal. Also, you can visualize the information about specific kernels.

How to Create a .crt File in Linux?

Linux offers the built-in “OpenSSL” library to create the “.crt” file that establishes a secure connection between a server and a web browser.

View the Content of a Tar File

How to View the Content of a Tar File?

Linux offers the “tar” command with the “tvf” option to view the contents of a tar file. It displays the “file names”, “date and time”, and “file location”.

How to Use the lsusb Command in Linux

How to Use the lsusb Command in Linux?

Linux offers the “lsusb” command to display a list of all USB devices connected to the system, including the device’s vendor ID, product ID, and device class.

How to Set User Agent in curl

How to Set User Agent in curl?

Linux offers the “curl -A” option, the “.curlrc” file, and the “CURL_USER_AGENT” environment variable to set the user agent.

How to Install GNOME on Ubuntu

How to Install GNOME on Ubuntu?

To install the GNOME desktop environment and minimal version, run the “ubuntu-gnome-desktop” and “ubuntu-desktop-minimal” commands in the system.

5 quick ways to kill a process in Linux

5 Quick Ways to Kill a Process in Linux

To kill a process in Linux, the “kill”, “kilall”, “pkill”, “xkill” and “top” commands are used.
They require the process name or id to kill the process.

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.

What is a Boot Loader

What is a Boot Loader?

The boot loader loads the OS into memory and starts it. It is responsible for initializing the system, performing hardware tests, and giving control to the OS.

How to unban an IP in fail2ban

How to unban an IP in fail2ban?

To unban an IP in fail2ban, the “fail2ban-client” utility is used by specifying the banned IP Address in IP List. This utility prevents unauthorized activity.

How to Show MOTD in Linux

How to Show MOTD in Linux?

Linux offers the “cat” command to display the “MOTD” in the terminal. Also, users can display the custom MOTD after accessing the /etc/motd file.