There are several ways of knowing the version of Linux you are running on your machine as well as your distribution name and kernel version plus some extra information that you may probably want to have in mind or at your fingertips. Therefore, in this simple yet important guide for new Lin...
hostnamectl 3. Using Cat To Fetch Data From /etc/os-release The cat (concatenate) command in Linux, when used, reads the data from a file and displays it in the terminal. The file “os-release” in the ‘/etc.’ directory contains the OS info. By typing cat “/etc/os-release,”...
You can look inside of the/etc/os-releasefile for some information about your Linux operating system version. Just usecator a similar command to check its contents. This file will only show up on Linux distributions runningsystemd. cat /etc/os-release Output: PRETTY_NAME="Ubuntu 22.04.1 LTS...
Once installed, use the command below to check your Linux OS version: $lsb_release -a Your system will display an output similar to the one in the image below. It will display the LSB info particular to your Linux distribution, including your Linux system version, which in our case is De...
<username>@<hostname> To display the current hostname in the terminal, you can use the hostname command. $ hostname Copy The Linux OS also stores the current hostname in a separate file inside the etc directory - /etc/hostname. You can use the cat or less command to display the co...
we will delve into the world of open ports in Linux, exploring what they are, why they matter, and how you can effectively check them.
Find Linux install date using terminal. Here is how to check os installation date in RedHat Linux or Ubuntu Systems. Run any one of the following commands. You will have to replace /dev/sda1 with correct hdd drive partition in the following set of commands. When executed correctly, the com...
Method 2: Using the hostnamectl Command Thehostnamectlcommand is a utility for managing hostnames and related system information in Linux. To usehostnamectlto check the Linux version, run the following command: hostnamectl Here’s the output: ...
$ hostnamectl --staticostechnix 3. Check Linux Hostname withnmclicommand Thenmcliis a command line tool to control NetworkManager and report the network status. With nmcli, we can create, display, edit, delete, activate, and deactivate network connections, as well as control and display network...
3. Change[hostname]to a new hostname. 4. Save the file and exit. 5. Restart the system. Note:To learn more about thehostsfile, check out our articlesHow to Edit Hosts File on Mac,How to Edit hosts File on LinuxorHow to Edit hosts File on Windows. ...