WorksheetsSharing Knowledge Linux (RHEL8)
Total questions: 15
Worksheet time: 3mins
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 user1?
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
What is the use of chmod command.?
To set permission
To create link
To check contents of Directory
None of these
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.?
Li
List
Lsdir
Ls
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
Usermod -L user
Userlo user
Usermod -a user
For permanent mount /etc/ is the file.
(a)
execute
1
no permission
0
write
2
read
4
How to formate the swap partition.?
Swapformate
Mkswap
Mkfs
None of these
