wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Commands

Total questions: 34

Worksheet time: 11mins

Name
Class
Date
1.

Which command adds users to a system?

a)

Chmod

b)

Chown

c)

Adduswer

d)

Adduser

2.

What question immediately ends a process instead of waiting for it to terminate?

a)

ps

b)

taskkill

c)

kill

d)

dig

3.

To log out of the shell program, use...

a)

logout

b)

exit

c)

df

d)

close

4.

The command used to locate a file in a directory:

a)

get

b)

apt-get

c)

find

d)

grep

5.

To display information on the screen (as a part of a script):

a)

echo

b)

show

c)

screen

d)

get

6.

Locate a pattern in a file or in multiple files:

a)

apt-get

b)

show

c)

find

d)

grep

7.

Install and remove application packages

a)

get

b)

grep

c)

apt-get

d)

config

8.

Change directory

a)

get

b)

dir

c)

cd

d)

ch

9.

Display information about a wireless adapter

a)

ipconfig

b)

ifconfig

c)

iwconfig

d)

wconfig

10.

View the contents of a file:

a)

cat

b)

find

c)

show

d)

grep

11.

Change permissions for a file or directory:

a)

chown

b)

dir

c)

chmod

d)

df

12.

Display information about your IP address (NOT configure it).

a)

ip

b)

ifconfig

c)

iwconfig

d)

chmod

13.

Query the DNS system for information about a website.

a)

ifconfig

b)

ip

c)

dnsfind

d)

dig

14.

Copy a file.

a)

cat

b)

move

c)

cp

d)

write

15.

Show available disk space and file system information.

a)

df

b)

ds

c)

disk

d)

showdisk

16.

Get rid of a mess of useless information on the terminal screen

a)

cls

b)

clear

c)

wipe

d)

blank

17.

Change the ownership of a file or directory

a)

chmod

b)

chown

c)

change

d)

per

18.

Troubleshoot TCP/IP connection problems

a)

ipconfig

b)

ifconfig

c)

iwconfig

d)

ip

19.

The package manager for Red Hat Linux distributions

a)

apt-get

b)

sudo

c)

grep

d)

yum

20.

Launch a full-screen editing program for a file

a)

note

b)

edit

c)

passwd

d)

nano

21.

Move a file from one directory to another

a)

mov

b)

mv

c)

move

d)

chdir

22.

Show the current working directory

a)

dir

b)

pwd

c)

chdir

d)

mkdir

23.

List all files and directories within the current directory

a)

dir

b)

mkdir

c)

ls

d)

list

24.

Switch user to a different user account

a)

sudo

b)

do

c)

su

d)

swu

25.

Remove a directory

a)

mkdir

b)

rmdir

c)

del

d)

rm

26.

Change a password for a user

a)

pwd

b)

password

c)

passwd

d)

chpass

27.

Run a command as an admin (superuser)

a)

su

b)

sudo

c)

admin

d)

doit

28.

Create a directory

a)

rmdir

b)

mkdir

c)

crdir

d)

make

29.

Test network connections (like the Windows PING command)

a)

ping

b)

ding

c)

ipchk

d)

ipping

30.

Delete file (or files)

a)

rem

b)

del

c)

rm

d)

dl

31.

Show all running processes (like Task Manager)

a)

proc

b)

show

c)

top

d)

process

32.

Display process IDs

a)

ds

b)

ps

c)

pid

d)

tskmgr

33.

Display all instructions for a command

a)

help

b)

hlp

c)

man

d)

inst

34.

Turn off the computer

a)

quit

b)

shutdown

c)

shutdwn

d)

off