Linux / Unix: SysVinit Services Restart vs Reload vs Condrestart

In the SysVinit init system, which is used in many Linux and Unix distributions, there are several commands to control system services: restart: The restart command stops the service and then starts it again. This is useful when you want to apply changes to the service’s configuration. service <service_name> restart reload: The reload command reloads … Read more

How to install OpenSSH server on Debian Linux 9/10/11

To install OpenSSH server on Debian Linux 9 (Stretch), 10 (Buster), or 11 (Bullseye), you can follow these steps: Update the package list by running the following command: sudo apt-get update Install the OpenSSH server package: sudo apt-get install openssh-server Check that the SSH service is running: sudo systemctl status ssh If the service is … Read more

Debian Linux Install Truetype Fonts For Xorg

To install TrueType fonts in Debian Linux for use with Xorg, you can follow these steps: Install the necessary package: sudo apt-get install ttf-mscorefonts-installer Copy the TrueType fonts you want to install to the font directory /usr/share/fonts/truetype/. Update the font cache by running the following command: sudo fc-cache -fv Restart the X server by logging … Read more

HowTo: Ubuntu Linux Kernel Version Command

You can check the version of the Linux kernel that’s currently running on your Ubuntu system using the following command: uname -r The uname command provides information about the system and its environment, and the -r option specifically requests the release information, which is the version of the Linux kernel. You can also use the … Read more

Linux and Unix host Command Examples

Here are some common examples of the host command in Linux and Unix: To perform a simple DNS lookup for a hostname, you can run the following command: host example.com To perform a reverse DNS lookup for an IP address, you can run the following command: host 8.8.8.8 You can also specify the DNS server … Read more

Linux and Unix dig Command Examples

The dig command in Linux and Unix is used to query the Domain Name System (DNS) to retrieve information about hostnames, IP addresses, and other DNS-related information. The dig command can be used to perform various types of DNS lookups, such as checking the A (address) record for a hostname, the MX (mail exchange) record … Read more