Podcast
Questions and Answers
What command is used to change the shell for user1 to /bin/nologin?
What command is used to change the shell for user1 to /bin/nologin?
- usermod -sh /bin/nologin user1
- usermod -s /bin/bash user1
- usermod -s /bin/nologin user1 (correct)
- usermod --shell /bin/nologin user1
Which command is used to create a new group with GID 599?
Which command is used to create a new group with GID 599?
- groupadd -g 599 group1 (correct)
- addgroup --gid 599 group1
- groupmod -g 599 group1
- groupadd -G 599 group1
Which tput command is used to clear the screen?
Which tput command is used to clear the screen?
- tput cls
- tput erase
- tput clrscr
- tput clear (correct)
What is the command to add a secondary membership of user1 to groupname?
What is the command to add a secondary membership of user1 to groupname?
Which command is used to change the UID of an existing user to 599?
Which command is used to change the UID of an existing user to 599?