How to change system’s hostname on HP-UX Unix system

To change the system’s hostname on HP-UX, you can use the “sam” command-line utility. The “sam” utility is the System Administration Manager, which provides a text-based interface for managing various system configurations, including the hostname. Here’s how you can change the hostname using the “sam” utility: Log in as the superuser (root) Open the “sam” … Read more

FreeBSD find CPU (processor) temperature command

To find the CPU temperature in FreeBSD, you can use the sysctl command to retrieve the temperature information from the system’s sensors. The temperature is stored in the “hw.sensors.cpu0.temp0” sysctl node. Example: sysctl hw.sensors.cpu0.temp0 Output: hw.sensors.cpu0.temp0=56.0 degC Note: The temperature output may vary depending on your system and the type of sensor used. The above … Read more

How to check boot path (partition) in Linux

To check the boot partition in Linux, you can use the “lsblk” command. This command lists all the available block devices and their respective partitions. The boot partition is typically the root partition (/) and is mounted as the root file system. The output of the command will show the name of the partition (e.g., … Read more

How to check os version in Linux command line

There are several ways to check the operating system version in the Linux command line. Here are a few common methods: Using the lsb_release command: lsb_release -a This command displays detailed information about the Linux distribution, including the version, release number, and codename. Using the /etc/os-release file: cat /etc/os-release This file contains information about the … Read more

upower command in Linux with examples

The upower command is a tool in Linux for monitoring and managing power usage on the system. It provides information about the state of the battery, the power supply, and other power-related information. Here are some common examples of how to use the upower command: Get a list of all power devices on the system: … Read more