In most cases, systemctl is used to control services, but there are some additional systemd commands that you can use. For example, hostnamectl enables you to view the system’s network hostname and other information about the system’s hardware and the Linux kernel it is running. You can also use this command to change the system’s […]
Archives for October 2022
hostnamectl: command not found
In most cases, systemctl is used to control services, but there are some additional systemd commands that you can use. For example, hostnamectl enables you to view the system’s network hostname and other information about the system’s hardware and the Linux kernel it is running. You can also use this command to change the system’s […]
systemctl Command Examples in Linux
Linux distributions are moving away from their old System V-style startup processes to a newer mechanism, the systemd daemon, and its associated systemctl command-line tool. Services managed by systemd/systemctl require, at a minimum, a configuration file that defines startup and shutdown processes, a type definition that controls how those processes will be handled by the […]
xrpd: command not found
xrdp is a free and open source utility that constructs a Remote Desktop Protocol (RDP)-like server for non- Windows systems. RDP was developed by Microsoft® and is the default remote desktop software on Windows®. So, you can install xrdp on a remote Linux server and use a tool like rdesktop or even the default RDP […]
localectl Command Examples in Linux
The localectl command is used to view and configure the system locale and keyboard layout settings. A system’s locale determines how it will represent various culture-specific elements, the most prominent of which is the language used in the interface. However, a locale can also determine factors such as how date and time are formatted, how […]
localectl: command not found
The localectl command is used to view and configure the system locale and keyboard layout settings. A system’s locale determines how it will represent various culture-specific elements, the most prominent of which is the language used in the interface. However, a locale can also determine factors such as how date and time are formatted, how […]
hwclock: command not found
The hwclock command enables you to view and set the hardware clock. As mentioned before, it is strongly recommended that you keep the hardware clock aligned with UTC to prevent over- correction by other operating systems. You can also use the hwclock command to adjust the systematic drift. The systematic drift is the predictable amount […]
timedatectl Command Examples in Linux
A new command that was introduced in systemd-based distributions that enables you to manage many aspects of time is timedatectl. When used without any arguments, this command shows detailed information about the current time and date. It also displays the time zone your system is in, in addition to information about the use of NTP […]
date: command not found
The date command is used to print the date in a specified format. The date command will print the date based on the /etc/localtime file. By default, it will print the date in the following format: [day of week] [month] [day] [24 hour time ##:##:##] [time zone] [year] Wed Oct 31 15:03:16 GMT 2022 You […]
grub2-mkconfig: command not found
The grub2-mkconfig command generates a new grub.cfg configuration file, and is used to update an existing grub.cfg file. The grub2-mkconfig command combines the configuration file templates in the /etc/grub.d/ directory with the settings in /etc/default/grub to generate the grub.cfg configuration file. Note: On some distributions, this command is simply grub-mkconfig. Syntax The syntax of the […]