From cd1db53397d2a9dd5d491caab45c9e5a7eaecb4f Mon Sep 17 00:00:00 2001 From: Fabrice Quenneville Date: Thu, 5 Dec 2024 15:40:37 -0500 Subject: [PATCH] Add commands to find information about Linux distribution, version, and kernel Included various commands such as `lsb_release -a`, `cat /etc/debian_version`, and `hostnamectl` to document ways of retrieving system and distribution details. --- notes/linux.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/notes/linux.md b/notes/linux.md index 2a24c7b..9630b00 100644 --- a/notes/linux.md +++ b/notes/linux.md @@ -7,6 +7,7 @@ - [System Information](#system-information) - [Hardware Information](#hardware-information) - [Software Information](#software-information) +- [Commands to Get Information About Linux Version, Kernel Version, and Release](#commands-to-get-information-about-linux-version-kernel-version-and-release) - [User Management](#user-management) - [User Information](#user-information) - [Super User Management](#super-user-management) @@ -42,6 +43,17 @@ To gather detailed information about your hardware, use the following commands: ### Software Information +**Finding information on the Linux distribution** + +# Commands to Get Information About Linux Version, Kernel Version, and Release + +- **`lsb_release -a`**: Displays detailed information about the Linux distribution, including the distributor ID, description, release number, and codename. +- **`cat /etc/debian_version`**: Displays the version of the Debian distribution if you're running a Debian-based system (like Ubuntu). +- **`cat /etc/os-release`**: Displays information about the operating system, such as the name, version, and ID of the distribution. +- **`cat /etc/*release`**: Searches for any files in the `/etc/` directory that contain the word `release` and displays their contents. This typically includes more detailed distribution information. +- **`cat /etc/*version`**: Similar to `cat /etc/*release`, but it looks for files containing the word `version`. It can provide additional version-related details. +- **`hostnamectl`**: Displays system information related to the hostname and other metadata about the system. This may include the operating system, kernel version, and architecture. + **Finding Path to Binary** To find the location of an executable binary, use: