NEW
Font size
WorksheetsQuiz 1 System Admin
Total questions: 20
Worksheet time: 10mins
Which term describes the interpreter that executes commands that are typed as strings?
Shell
Console
Command
Terminal
Which Bash command displays the last five lines of the /var/log/messages file?
less 5 /var/log/messages
head -n 5 /var/log/messages
tail -l 5 /var/log/messages
tail -n 5 /var/log/messages
Which directory contains user home directories?
/user
/
/home
/root
Which directory contains system files to access hardware?
/etc
/dev
/usr
/run
Which directory is the administrative superuser's home directory?
/
/etc
/home/root
/root
Which directory contains installed software programs and libraries?
/lib
/usr
/etc
/var
Which command displays the absolute path name of the current working directory?
dir
cd
pwd
ls -d
Which command returns to your home directory, assuming that the current working directory is /tmp and /home/user is your home directory?
cd /home
cd
cd /user
cd /
Which command lists files in the current working directory, with a long format, and including hidden files?
ls -hide
ls -a
ls -l
ls -al
A user can use the passwd command to change another user's password.
True
False
Linux require file name extensions to classify files by type.
True
False
What is the function of cat command used in Linux?
to create single or multiple files and to redirect contents of the file to a terminal or to files
to view the contents of files
to create single or multiple files, to view the contents of files, to concatenate the contents from various files, and to redirect contents of the file to a terminal or to files
Why do we need to use the wc command?
To write and change the number of lines, words, and bytes in the zcat script
To display the number of lines, words, and bytes in the zcat script
To write and change the number of lines, words, and bytes in the zip folder
Which directory contains persistent, system-specific configuration data?
/root
/etc
/run
/var
Which command changes the working directory to /tmp if /home/student is the current working directory?
cd tmp
cd ~tmp
cd ../../tmp
cd home/tmp
What file names that begin with a dot (.)is referring to?
Zipped File
Installed File
Hidden File
Which Bash command displays the file type?
cat
file
view
display
Which sign indicates the superuser shell?
$
#
*
%
Which command is used for a user on the host machine to log in to the remote Linux system remotehost as the remoteuser user
ssh remoteuser
ssh remoteuser@remotehost
ssh remotehost
Which term describes an interface that provides a display for output and a keyboard for input to a shell session?
virtual console
console
terminal
bash shell
