Podcast
Questions and Answers
Which command adds the new user 'tux' and creates the user's home directory with default configuration files?
Which command adds the new user 'tux' and creates the user's home directory with default configuration files?
- useradd -m tux (correct)
- defaultuser tux
- useradd -o default tux
- usercreate tux
What information is stored in the /etc/passwd
file?
What information is stored in the /etc/passwd
file?
- The numerical user ID
- The user's storage space limit
- The encrypted password and the user's default shell (correct)
- The username
Which of the following tar
options handle compression?
Which of the following tar
options handle compression?
- -g
- -j and -z (correct)
- -bz
- -z
What keyword is used in a shell script to begin a loop?
What keyword is used in a shell script to begin a loop?
Which of the following commands creates an archive file work.tar
from the contents of the directory ./work/
?
Which of the following commands creates an archive file work.tar
from the contents of the directory ./work/
?
Which of the following permissions does CertyIQ r=read w=write x=execute t = means
?
Which of the following permissions does CertyIQ r=read w=write x=execute t = means
?
What is the purpose of setting a variable in Shell scripting?
What is the purpose of setting a variable in Shell scripting?
Which command can be used to set the variable USERNAME to 'bob' in Shell scripting?
Which command can be used to set the variable USERNAME to 'bob' in Shell scripting?
In Shell scripting, what does the operator '?' do in a regular expression?
In Shell scripting, what does the operator '?' do in a regular expression?
Which command should be used in a script to display the content of a variable MYVAR in Shell scripting?
Which command should be used in a script to display the content of a variable MYVAR in Shell scripting?
What issue arises when executing the given script 'script.sh' with 'MYVAR=value ./script.sh'?
What issue arises when executing the given script 'script.sh' with 'MYVAR=value ./script.sh'?
Which special character is used for wildcard matching in Linux commands?
Which special character is used for wildcard matching in Linux commands?
What will the command ls ../ Documents/
do if executed in the /home/user/Downloads/
directory?
What will the command ls ../ Documents/
do if executed in the /home/user/Downloads/
directory?
Which command will copy all files ending with .txt
to the /tmp/
directory?
Which command will copy all files ending with .txt
to the /tmp/
directory?
How can you split a long command across multiple lines in the shell?
How can you split a long command across multiple lines in the shell?
Which command would move all files starting with text
and ending with .csv
to a new directory called data
?
Which command would move all files starting with text
and ending with .csv
to a new directory called data
?
What is the purpose of the chmod
command?
What is the purpose of the chmod
command?
Which command would list all files in the current directory, including hidden files?
Which command would list all files in the current directory, including hidden files?