Home Linux - show OS details
Post
Cancel

Linux - show OS details

I wanted to know what Operating System I’m using in order to use OS-specific utilities like Linux - Add user to sudoers

Execute:

1
$> cat /etc/os-release

Output:

1
2
3
4
5
6
7
8
9
10
11
-------OS Information--------
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
------------------------------
This post is licensed under CC BY 4.0 by the author.

Linux - Create User

GitHub Actions - run workflows locally with act even for self-hosted runners