Online Computer Science Test - Unix Test

Instruction:

  • This is a FREE online test. Beware of scammers who ask for money to attend this test.
  • Total number of questions: 20.
  • Time allotted: 30 minutes.
  • Each question carries 1 mark; there are no negative marks.
  • DO NOT refresh the page.
  • All the best!

Marks : 2/20


Total number of questions
20
Number of answered questions
0
Number of unanswered questions
20
Test Review : View answers and explanation for this test.

1.
While working with mail command, which command is used to save mail in a separate file?
s
r
w
d
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

2.
Which of the following command addresses all users who are currently hooked on?
write
mail
wall
mesg
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

3.
Which of the following keys is used to move the cursor to the end of the paragraph.
}
{
|
$
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

4.
Which command is used to remove the read permission of the file 'note' from both the group and others?
chmod go+r note
chmod go+rw note
chmod go-x note
chmod go-r note
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

5.
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
^pat
$pat
pat$
pat^
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

6.
Which of the following commands is used to display the directory attributes rather than its contents?
ls -l -d
ls -l
ls -x
ls -F
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

7.
If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use
tty ^c
stty intr \^c
stty echoe
stty echo \^a
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

8.
Which command is used to remove a file?
remove
rm
mv
del
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

9.
Which of the following options will be used to display number of blocks used by a file?
-c
-i
-d
-s
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

10.
Which command is used to display a file contents in octal form?
cd
od
of
oct
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

11.
Which of the following commands is used to get directory one level up?
cd
cd ..
cd/
chdir
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

12.
Which commands is used to assign executable permission to all of the files named "letter"?
chmod ugo+r letter
chmod ugo+rw letter
chmod u+x letter
chmod ugo+x letter
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

13.
Which command is used to sort the lines of data in a file in alphabetical order?
sort
sh
st
sort -r
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

14.
Which option will be used with disk free command to include the total amount of disk space in the file system?
-t
-tt
-4
-i
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

15.
Which is the earliest and most widely used shell that came with the UNIX system?
C shell
Korn shell
Bourne shell
Smith shell
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

16.
Which command will be used with vi editor to replace single character under cursor with any number of characters?
s
S
a
i
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

17.
Which command is used to save the standard output in a file, as well as display it on the terminal?
more
cat
grep
tee
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

18.
Which command will be used with vi editor to append text at end of line?
A
a
i
I
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

19.
Which command is used with vi editor to move the cursor to the left?
i
j
k
h
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

20.
Which of are following internal commands is used in mail to forward mail to user in user-list?
r user-list
m user-list
d user-list
e user-list
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

*** END OF THE TEST ***
Time Left: 00:29:56
Post your test result / feedback here: