Explore Online Courses
Free Courses
Hire from us
Become an Instructor
Reviews
All Courses
Submit
Submit
Take the Free Practice Test
Free Practice Test
Instructions:
FREE test and can be attempted multiple times.
60 Minutes
30 Multiple Choice Questions
Fill in the Details to Get Started
Select your preference
Self-learning and knowledge validation
Completed a course & revising
Just curious
By providing your contact details, you agree to our
Terms of Use
&
Privacy Policy
Welcome to your Linux Quiz
Which of the following acts as the mediator between the kernel and end user in Unix Operating System?
Kernel
Shell
Hardware
None of the above
Which of the following interacts directly with the hardware in Unix Operating System?
Shell
Kernel
User
All of the above
Which command is used to execute a command as some other user or super-user?
which
apt-get
sudo
None of the above
Which of the following command is used to erase the command-line history?
history
clear
history -c
clear -a
Which of the following command will you be using to check out the directory that you are currently working on?
cd
pwd
cwd
Both 2 and 3
What are the 3 different Access control on UNIX systems? (Choose all the correct answers)
User
Group
Administrator
Other
Why do you use the Chown command in UNIX?
To modify file permissions
To call a text editor
Modify the Permission of Processes
Modify a file's owner
What is the meaning of 777 in UNIX permissions?
Give no permissions to Users, Groups and Others
Provide all permissions to Users, Groups and Others
Provide only read for User, Group and Others
Provide only execute for User, Group and Others
Are we the owner of a file when we create it?
Yes, we are!
No, we are not!
Which is the default permission set for directories?
rwxrwxrwx
--x--x--x
r-xr-xr-x
rw-rw-rwx
Which command is used to start the cat process in the background?
cat &&
cat &
Both 1 and 2
None of the above
Which command lists out all the running processes for one user?
ps -u [username]
ls -u [username]
Which of the following has lowest priority?
Nice value = 4
Nice value = -4
Nice value = 2
Nice value = -2
Which of the following command is used to check the amount of disk space used by a file system?
ps
ls
df
None of the above
Which of the following terminate signal kills the process when used with the kill command?
1
5
9
14
Which of the following is the correct way of setting an environment variable?
export [local_variable_name]
export set [local_variable_name]
None of the above
Which of the following is not a proper shell name?
Csh : C shell
Ksh : Korn Shell
Bash : bourne again shell
Ssh : sea shell
Shell programs are
Compiled
Command processed
Interpreted
None of the above
In Shell scripting, what is $*
Its mainly used for showing up all params. This will show few parameter values passed in shell script
Its mainly used for showing up all params. This will show all parameters values passed in shell script
Both 1 and 2
How do you find out what's your shell?
pwd
echo $SHELL
$sh
whoami
What is the most basic conditional statement?
why
for
if
while
Which statement is used to stop the current iteration and start a new iteration?
Break
Close
Do
Continue
Why use Case … esac statement?
Best looping statement
Execute statements under a chosen pattern
Execute statements when the loop iterates 5 times
Create a case file and close a case file
For loop needs a list for iteration in Linux. True or False.
True
False
What is NOT a benefit of functions?
Reuse the code
Improves code’s readability
Makes the code complex
Code is in sub-steps
Which is the right way of making variable “a” ask for the first parameter which is entered with the function?
a==$1
a=$1
a=#1
a==#1
How to call a function in one file from another file?
First use the source command to add the file and then enter the function names
Directly enter the function names
Enter function names with brackets “()”
First use the source command to add the file and then use function names with brackets “()”
Which of the following command will print out the numbers of fields in a record from the data.csv file?
awk '{print NR,$0}' data.csv
awk '{print NF,$0}' data.csv
awk '{print NR}' data.csv
awk '{print NF}' data.csv
Which of the following statement is true about SORT commands?
First numbers, then lower case letters, and then upper case letters
First Upper case letters, then lower case letters, and then numbers
First lower case letters, then upper case letters, and then numbers
First numbers, then upper case letters, and then lower case letters
Which of the following flag is used with SED commands to make in-line changes?
-f
-i
-w
Both 2 and 3
Time is Up!