TIL = Things, or Today I Learned

An experiment in Learning in Public.

Home

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 sudoersLinux - Add user to sudoers
How do I enable a user, say userx, to run commands prefixed with sudo ?
After running sudo as userx, I also don't want to enter a password.

In CentOS, add the user to the wheel group.

echo "userx...

Execute:

$> cat /etc/os-release

Output:

-------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/"
------------------------------