WorksheetsREDHAT ACADEMY
Total questions: 15
Worksheet time: 8mins
How to change the shell for user.?
Usermod -s
User -k
Usermod -S
None of these
Which is the file consist group information.?
/etc/group
/etc/shadow
/etc/gshadow
/etc/groupinfo
Which command is used for adding a new user.?
Add user
Useradd
Usermod
Userplus
Which command is used for delete all credential of user.?
Userdel user1
Userdel -r user1
Userdel -all user1
None of these
Which command is used to change the password of user.?
Password
Passwd
Paswd
Pass
How can you create maximum Primary partition ?
6
5
4
3
What is the use of chmod command.?
To set permission
To create link
To check contents of Directory
None of these
How to see parent Structure of Directory.?
Ls
Ls -r
Ls -R
Ls -p
How to add user1 in to the sysadmin group.?
Groupadd user1 sysadmin
Gpasswd -a sysadmin user1
Gadd user1 sysadmin
Gpasswd -a user1 sysadmin
How to append data in to the file.?
Cat>>file
Cat>file
Cat
None of these
How to add these user in to the sysadmin group.?user1 , user2 , user3
Gpasswd -a user1 user2 user3
Gpasswd -m user1 user2 user3
Gpasswd -M user1 user2 user3
Gpasswd -all user1 user2 user3
Which command is used to check the content of directory.?
Ls
List
Lsdir
Li
What will happen if we run this command.?#touch file{1..10}
It create file with name file{1..10}
It create 10 files
Error
None of these
How to Lock the user.?
Usermod -l user
Userlo user
Usermod -L user
Usermod -a user
MBR stands for .?
Master Boot Record
Master Bit Record
Map Bit Record
Map Boot Record
