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

Which Linux command is used for packet analyze?

A
gzip
B
dig
C
tshark
D
tracepath
Question 3

How to find the location of abc quickly in Linux?

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

Which Linux command kills all processes named abc?

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

How to create group xyz in Linux?

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

How to delete user Angela in Linux?

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

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

A
filters
B
arpwatch
C
ethtool
D
interface
Question 8

Which Linux Command shows who you are logged in as?

A
pwd
B
whoami
C
who
D
df
Question 9

Which Linux command is used for path tracking?

A
ping
B
iptables
C
tracepath
D
ethtools
Question 10

How to encrypts file abc in Linux?

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

Which Linux command is used for secure connection?

A
iptables
B
ssh
C
ethtools
D
ss
Question 12

Which Linux command compresses abc file using gzip?

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

Which LINUX command used for simple DNS lookup?

A
dig
B
dstat
C
dir
D
curl
Question 14

Which Linux command shows files in the current directory?

A
df
B
dir
C
ss
D
rm
Question 15

With which linux command can we view file abc?

A
cat abc
B
ls abc
C
view abc
D
display abc
Question 16

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

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

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

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

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

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

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

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

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

A
showmsg
B
bufmes
C
dmesg
D
displaymsg
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.