Linux Commands Quiz 2

LINUX QUIZ 2

  CONGRATULATIONS! YOU HAVE COMPLETED LINUX QUIZ 2. YOU HAVE %%SCORE%% TRUE ANSWERS OUT OF %%TOTAL%% QUESTIONS. YOUR SCORE IS %%PERCENTAGE%%. %%RATING%%
Your answers are highlighted below.
Question 1

With which command can we display first 10 lines of file abc?

A
ls abc
B
head abc
C
touch abc
D
tail abc
Question 2

... command displays messages in kernel ring buffer in Linux.

A
bufmes
B
showmsg
C
dmesg
D
displaymsg
Question 3

Which Linux command displays ethernet activity and Ethernet/ip pairings?

A
arpwatch
B
interface
C
ethtool
D
filters
Question 4

How to delete user Angela in Linux?

A
remove Angela
B
del Angela
C
move Angela
D
userdel Angela
Question 5

Which Linux command shows files in the current directory?

A
rm
B
ss
C
df
D
dir
Question 6

In Linux, .... command shows free and used space on mounted file systems.

A
free
B
ls -a
C
bg
D
df -h
Question 7

Which Linux command compresses abc file using gzip?

A
gzip abc
B
tail abc
C
df abc
D
pwd gzip abc
Question 8

Which LINUX command used for simple DNS lookup?

A
dir
B
curl
C
dig
D
dstat
Question 9

Which Linux command is used for secure connection?

A
ss
B
ethtools
C
iptables
D
ssh
Question 10

How to create group xyz in Linux?

A
grp xyz
B
touch xyz
C
groupadd xyz
D
create xyz
Question 11

Which ls option provide comma-­sep­arated output in Linux?

A
-a
B
-c
C
-s
D
-m
Question 12

Which Linux command is used for packet analyze?

A
gzip
B
tracepath
C
dig
D
tshark
Question 13

In Linux, .... command brings job x to the foreground.

A
fg x
B
ss x
C
df x
D
bg x
Question 14

With which Linux command, can we upload file ‘abc’ from local to remote device?

A
head abc
B
put abc
C
up abc
D
get abc
Question 15

Which Linux Command shows who you are logged in as?

A
pwd
B
whoami
C
who
D
df
Question 16

How to find the location of abc quickly in Linux?

A
move abc
B
find abc
C
grep abc
D
locate abc
Question 17

How to encrypts file abc in Linux?

A
tail abc
B
touch abc
C
gpg -c abc
D
encry -o abc
Question 18

Which Linux command is used for path tracking?

A
tracepath
B
ethtools
C
ping
D
iptables
Question 19

Which Linux command kills all processes named abc?

A
pkill abc
B
killall
C
kill abc
D
killall abc
Question 20

With which linux command can we view file abc?

A
cat abc
B
view abc
C
display abc
D
ls abc
Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There are 20 questions to complete.