1
TESTOUT LINUX PRO PRACTICE QUESTIONS
AND CORRECT DETAILED ANSWERS (VERIFIED
ANSWERS) ||ALREADY GRADED A+||NEWEST
VERSION
Quiz: According to the command line help, which switch can you
use with the killall command to kill a process group instead of just a
process?
Ans: Use killall -h or killall --help to find the correct option
A: -g
Quiz: What does the -M switch do with the useradd command?
Ans: Use useradd -h or useradd --help
Prevents the home directory from being created regardless of system settings
Quiz: According to the command help, what does the -G switch do
with the usermod command?
o
o
© 2025 TestTrackers
WhatsApp or call o Resources & Updates: [Testtrackers - Stuvia US]
o Your Success is Our Mission!
[+ 254707240657]
o For online exams and tutor expert, please
whatsapp me in the number given.
,2
Ans: Use usermod -h or usermod --help
Assigns a user to a new list of supplementary groups
Quiz: You need to use the vim editor to create a script file to
change and export the SHELL environmental variable as the C-shell.
Complete the following tasks:
-Open the vim editor with a new file named /etc/pref_shell
-Add the following lines to the file:
SHELL=/bin/csh
export SHELL
-Save and close the file
o
o
© 2025 TestTrackers
WhatsApp or call o Resources & Updates: [Testtrackers - Stuvia US]
o Your Success is Our Mission!
[+ 254707240657]
o For online exams and tutor expert, please
whatsapp me in the number given.
,3
Ans: - Type vi /etc/pref_shell to open vim and create the file
-Press the a key to enter insert mode (or ctrl + insert keys) and type the
required text
-Press Esc key to get out of insert mode
-:wq to save and exit
Quiz: You have just added a custom script to change and export the
SHELL environmental variable as the C-shell. However, you decide
to change from the C-shell to tsch.
Your task in this lab is to:
-Open /etc/pref_shell in vim
-Modify the environmental variable line SHELL=/bin/csh to read
SHELL=/bin/tcsh
-Save changes
o
o
© 2025 TestTrackers
WhatsApp or call o Resources & Updates: [Testtrackers - Stuvia US]
o Your Success is Our Mission!
[+ 254707240657]
o For online exams and tutor expert, please
whatsapp me in the number given.
, 4
Ans: -Type in vi /etc/pref_shell to enter document
-change csh to tcsh
-:wq to save and exit
Quiz: View the currently set environment variables to find the
values below
HOME
LANG
SHELL
TERM
o
o
© 2025 TestTrackers
WhatsApp or call o Resources & Updates: [Testtrackers - Stuvia US]
o Your Success is Our Mission!
[+ 254707240657]
o For online exams and tutor expert, please
whatsapp me in the number given.
TESTOUT LINUX PRO PRACTICE QUESTIONS
AND CORRECT DETAILED ANSWERS (VERIFIED
ANSWERS) ||ALREADY GRADED A+||NEWEST
VERSION
Quiz: According to the command line help, which switch can you
use with the killall command to kill a process group instead of just a
process?
Ans: Use killall -h or killall --help to find the correct option
A: -g
Quiz: What does the -M switch do with the useradd command?
Ans: Use useradd -h or useradd --help
Prevents the home directory from being created regardless of system settings
Quiz: According to the command help, what does the -G switch do
with the usermod command?
o
o
© 2025 TestTrackers
WhatsApp or call o Resources & Updates: [Testtrackers - Stuvia US]
o Your Success is Our Mission!
[+ 254707240657]
o For online exams and tutor expert, please
whatsapp me in the number given.
,2
Ans: Use usermod -h or usermod --help
Assigns a user to a new list of supplementary groups
Quiz: You need to use the vim editor to create a script file to
change and export the SHELL environmental variable as the C-shell.
Complete the following tasks:
-Open the vim editor with a new file named /etc/pref_shell
-Add the following lines to the file:
SHELL=/bin/csh
export SHELL
-Save and close the file
o
o
© 2025 TestTrackers
WhatsApp or call o Resources & Updates: [Testtrackers - Stuvia US]
o Your Success is Our Mission!
[+ 254707240657]
o For online exams and tutor expert, please
whatsapp me in the number given.
,3
Ans: - Type vi /etc/pref_shell to open vim and create the file
-Press the a key to enter insert mode (or ctrl + insert keys) and type the
required text
-Press Esc key to get out of insert mode
-:wq to save and exit
Quiz: You have just added a custom script to change and export the
SHELL environmental variable as the C-shell. However, you decide
to change from the C-shell to tsch.
Your task in this lab is to:
-Open /etc/pref_shell in vim
-Modify the environmental variable line SHELL=/bin/csh to read
SHELL=/bin/tcsh
-Save changes
o
o
© 2025 TestTrackers
WhatsApp or call o Resources & Updates: [Testtrackers - Stuvia US]
o Your Success is Our Mission!
[+ 254707240657]
o For online exams and tutor expert, please
whatsapp me in the number given.
, 4
Ans: -Type in vi /etc/pref_shell to enter document
-change csh to tcsh
-:wq to save and exit
Quiz: View the currently set environment variables to find the
values below
HOME
LANG
SHELL
TERM
o
o
© 2025 TestTrackers
WhatsApp or call o Resources & Updates: [Testtrackers - Stuvia US]
o Your Success is Our Mission!
[+ 254707240657]
o For online exams and tutor expert, please
whatsapp me in the number given.