Preparing your workspace...
Loading latest data

One evening in the study hall, a student sat at a desk, going through notes. The exam on Linux was coming up, and clear explanations were needed.
Frustrated with vague textbook answers, the student turned to a mentor and said:
"Answer these questions, but please explain them clearly. Short answers won’t help—I need to understand why things work."
The mentor smiled and said, "Ah, you want more than just answers. Alright, let’s go through each one step by step."
With patience, the mentor explained each question, adding details, history, and real-world examples. The student listened carefully and realized that real learning was not just about getting
answers—it was about understanding the ideas behind them.
From that moment on, learning became more than just memorizing facts. It became about truly understanding the subject.
Question 1.
What is the user id for root user?
Question 2.
How to check the uid and gid of an user?
Question 3.
A user want to see the owner and group ownership of a directory name employees. What command you suggest him to get this information?
Question 4.
You are working on a red hat server machine and find the process information about all users. What command will you use?
Question 5.
You want to see the user account information with following requirements – uid, gid, home dir and login shell. Which file you will choose?
Question 6.
What is the default login shell in RHEL 9?
Question 7.
You have multiple shell program install in your Linux machine and your default shell is sh but you want to change as bash for your default shell.
Which command you will preferred to change shell?
Question 8.
A user is not able to switch with another user named sonu and Linux machine display following error on screen “ this account is currently not available”.
Although account is available in passwd file.How you will resolve this issue?
Question 9.
Raj is a regular user account with having sudo privilege. Root user wants which users are also having sudo privilege? Which group root user will look for?
Question 10.
root user want to collect user and group id of a specific user account which command you will suggest him to get this information?
Question 11.
What is the fourth field of the /etc/passwd file?
Question 12.
The root account on Linux is roughly equivalent to which account on Microsoft Windows.
Question 13.
In Linux which user has unlimited power to damage the system: remove files and directories, remove user accounts, add back doors, and so on.
Question 14.
When the root user runs the su command, you do not need to enter the user's password.
Question 15.
Which option you will use with usermod command to lock the password of a user account?
Question 16.
Which version of redhat enterprise linux do not grant the wheel group any special privileges by default.
Question 17.
Which file is the main configuration file for the sudo command?
Question 18.
If the user01 user has a user01 primary group and wheel and webadmin secondary groups, then that user can read files that any of those three groups can read.
Question 19.
If a user tries to run a command as another user, and the sudo configuration does not permit it, then bash blocks the command, logs the attempt,
and sends by default an email to the root user.
Question 20.
A Linux administrator can get an interactive shell as root on an AWS Elastic Cloud Computing (EC2) instance by using SSH public-key authentication
to log in as the ec2-user normal user, and then which command to access the root user's shell will used?