Tutorials on Linux, Programming & Technology

What DNS Servers Am I Using in Linux

What DNS Servers Am I Using in Linux?

To check the currently used DNS server, consider the “resolv.conf” file or built-in tools such as ”dig”, and “nslookup” or use the “Network” settings (GUI).

Python Regex Capturing Groups

Python Regex Capturing Groups

Python regex capturing groups enable you to capture specific parts of a string based on a specified pattern such as using (\b\d+) pattern for capturing digits.

How to Add New Lines When Using echo

How to Add New Lines When Using echo?

To add new lines, use the “-e(backspace interpreter)” and “$(bash variable)” with the “echo” command. An “echo” tool can also be used multiple times to do this.

How to Install the Latest cURL on Linux

How to Install the Latest cURL on Linux?

In Linux and its distributions, the “curl” can be installed via default package managers i.e “apt” (Ubuntu/Debian), “yum” (CentOS/RHEL), and “dnf” (Fedora).

How To Generate A Strong Password In Linux

How to Generate a Strong Password in Linux?

To generate a strong password, use the “urandom”, “makepasswd”, “gpg”, “apg”, “pwgen”, and “openssl rand” commands. It can also be done using the “Perl” script.

how Does find -name work

How Does find -name Work?

The “find -name” locates the files/directories by different parameters name, extensions, or searching and deleting the particular file/directory.

How to Check RAM Size

How to Check RAM Size Using CLI?

To check the RAM size in the Linux, utilize the “/proc/meminfo file”, “free”, “top”, “vmstat”, “dmidecode”, “lshw”, or “hwinfo” utilities

What is _declare_ in Bash

What is “declare” in Bash?

In Bash, the “declare” command sets the variable and functions alongside their attributes, “integer”, “string”, “array”, and “read-only” variables.

How to Restart the SSH Service

How to Restart the SSH Service?

Linux offers the “systemctl” and “service” commands to restart the “SSH” service instantly. It can also be restarted by accessing the “/etc/init.d” directory.

How To Change IP Address on Linux

How to Change IP Address on Linux?

To change an IP address, utilize the “ip”, “ifconfig”, and the “nmcli” command line tools or the “Network” window in the GUI method.

How to Force a Clock Update Using NTP

How to Force a Clock Update Using NTP?

To force a clock update using the NTP server, use the “ntpdate” command and “ntpd” service. They synchronize the time on the system with the time NTP server.

How to Upgrade Java on Ubuntu

How to Upgrade Java on Ubuntu?

To upgrade Java on Ubuntu, use the “sudo apt install openjdk-19-jdk” command or download the latest version of Java from the Oracle website and install it.

How do I Find Out Users in a Group?

To find out which users are in a group within Linux, utilize the “groups”, “getent”, and “id -Gn” commands and the “/etc/group” file.