wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux-1 Week 6

Total questions: 16

Worksheet time: 10mins

Name
Class
Date
1.

Correct command to view network-card (NIC) information

a)

ipconfig

b)

ifconfig

c)

ip a

d)

netstat

2.

What can be done with the 'dig' command

a)

The dig command can be used to set network routes

b)

The dig command can be used for tracing packages

c)

The dig command shows network performance statistics

d)

The dig command will perform queries on the DNS server

e)

The dig command is a modern version of the 'ping' command

3.

The 'host' command.....

a)

will return your hostname for your local machine

b)

works with DNS to associate a hostname with an IP address

c)

allows you to change the hostname for your local machine

d)

Will add a static route for a remote host

4.

Correct syntax for a ssh command?

a)

ssh <user>@machinename

b)

ssh -f <user> machinename

c)

ssh -f machinename <user>

d)

ssh machinename@user

5.

what is true about the RSA key fingerprint?

a)

It has a relation with the 'HOST' command

b)

It has a relation with the 'NETSTAT' command

c)

It has a relation with the 'ROUTE' command

d)

It has a relation with the 'SSH' command

6.

How to execute commands as root

a)

use 'su'

b)

use 'sudo'

c)

use 'root'

d)

use 'admin'

7.

What is true about the /etc/passwd file

a)

It defines some account information for user accounts

b)

It contains the (encrypted) passwords for all users

c)

Each line contains information about a single user

d)

It is hashed and not readable

e)

It defines the primary group membership for a user

8.

Correct command to print user and group information

a)

whoami

b)

w

c)

who

d)

id

9.

The 'who' command....

a)

lists users who are currently logged in

b)

will tell you where and when users logged in

c)

It will show previous login sessions

d)

It will display information for a specific account

10.

The 'last' command...

a)

Reads the /var/log/wtmp file all login records

b)

Shows only current login information

c)

Shows previous login sessions as well as current login information

d)

Shows only previous login sessions

11.

Check the correct commands

a)

useradd

b)

adduser

c)

passwd

d)

passmod

12.

How to delete a user and their home directory?

a)

That is not possible in Linux with a single command

b)

search for all the files manually and then delete them

c)

use: userdel -f <user>

d)

use: userdel -r <user>

13.

What will happen if the groupdel command is used to delete a group

a)

Files in the deleted group will become orphaned

b)

Files in the deleted group will be owner by root

c)

Files in the deleted group will be deleted

d)

Nothing will happen

14.

A user has a GID <500, what can be said?

a)

The user is reserved for system use

b)

The user is a natural person

c)

The user is revoked

d)

The user has no password

15.

The getent command can be used to...

a)

Show your password expiration date

b)

Show local and network-based groups

c)

Show system-based entities for groups

d)

Show all system based userID's on your system

16.

How to copy a directory in Linux with all files inside?

a)

use: cp -f <directoryname>

b)

use: cp -d <directoryname>

c)

use: cp -i <directoryname>

d)

use: cp -r <directoryname>