cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Dec-2024 Red Hat Learning Community contest

Chetan_Tiwary_
Community Manager
Community Manager

Welcome to the Red Hat Learning Community Mastery Contest Series for December 2024!

We will be hosting the RHLC Mastery Contest Series quarterly, where RHLC members have the chance to answer questions, help fellow community members and win prizes! To participate, answer at least one (1) of the questions below to be entered to win a Red Hat Preliminary Exam voucher. Each question answered correctly will increase your chances of winning.

 

__Q4Contest.jpg

 

To enter the RHLC contest:

  • Kudo this post.
  • Provide an accurate answer or contribution to at least one of the 5 pre-selected questions below. More questions answered increases the chances of winning. 

 

Question Bank:

1. Test your expertise, determine your skills gaps, and get recommendations for where to start with Red Hat training by taking the Skills Assessment and let us know if the recommendation met your training objectives: https://skills.ole.redhat.com/en 

2. Solve this Shell Scripting Challenge.

3. Take the Ansible Playbook Challenge.

4. How do you celebrate your achievements?

5. Share your 2024 Tech Journey!

 

Good luck and wish you all the best!

See contest Terms & Conditions here.

Tags (1)
5 responses
kgfathur
Mission Specialist
Mission Specialist

#1 comment 

kgfathur_0-1734484179298.png

need more to learn and explore the man page

 

 

VelmuruganAshok

Answer for the 2nd question:

Please find my script below:

#!/bin/bash

check_user() {
    local username=$1
    id $username >> /dev/null 2>&1
    output=$(echo $?)
    return $output
}

create_user() {
    local username=$1
    echo "User NOT exist"
    echo "Creating the User with a home directory:"
    sudo /sbin/useradd -m $username
    echo "Enter a strong password for the new user: "
    sudo passwd $username
}

echo "This script will check the user is exist in the system and create it if not exists"

echo "Enter the username: "

read username

if check_user "$username"; then
    echo "The user "$username" is exists"
    echo "User check completed. Thank You!"
else
    create_user "$username"
fi

thaleighanneah
Mission Specialist
Mission Specialist

Screenshot 2024-12-18 112448.png

Screenshot 2024-12-18 112651.png

I'm satisfied with the assessment . It identified my weak points and which pathway to take to improve which did follow my training objectives.

Sathindra-VSIS

SathindraVSIS_0-1734515015150.png

SathindraVSIS_0-1734515064644.png

 

 

Questar2JP
Mission Specialist
Mission Specialist

Seems to be pretty accurate as far as my assessment suggests....

Questar2JP_0-1734547895683.png