Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Fundamentals

Total questions: 18

Worksheet time: 18mins

Name
Class
Date
1.

Which of the following commands will show you your home directory?

a)

 Id

 

b)

cwd

c)

echo $HOME

d)

print_home

2.

What type of file is firefox.deb located at /root?

a)

Directory

b)

Shell script

c)

Data file

d)

Debian binary package file

3.

You are asked to install a new third-party IDE (integrated development environment ) in the system.

Which directory is the recommended choice for the installation

a)

/root

b)

/home

c)

/opt

d)

/var

4.

Which directory contains the files related to the block devices that can be seen when running the lsblk command?

a)

/media

b)

/devices

c)

/mount

d)

/dev

5.

Which of the following package managers would you use on Centos machine

a)

Yum, rpm

b)

apt-get

c)

apt

d)

dpkg

6.

Which of the following package managers would you use on a debian based distro?

a)

yum

b)

dpkg

c)

rpm

d)

install

7.

Which file is responsible for host file-based DNS resolution?

a)

/etc/resolve.conf

b)

/etc/fstab

c)

/etc/hosts

d)

/etc/passwd

8.

What is the configuration file used for the DNS Server?

a)

/etc/resolve.conf

b)

/etc/passwd

c)

/etc/hosts

d)

/etc/dns/dns.conf

9.

Which order is used currently to resolve an IP address in the system?

a)

DNS Server alone

b)

/etc/hosts file alone

c)

DNS Server then /etc/hosts file

d)

/etc/hosts file then DNS Server

10.

What type of account does ec2-user use?

a)

User account

b)

System account

c)

Service account

d)

System administrator account

11.

Which of the following commands will show you the UID for a user?

a)

Echo $HOME

b)

Cwd

c)

id

d)

Print_home

12.

What level of sudo access does ec2-user have in this system?

a)

Permission to install packages

b)

All Permissions

c)

Permission to remove packages

d)

Permission to reboot the laptop

13.

Which access control file has the encryped password for the users?

a)

/etc/shadow

b)

/etc/passwd

c)

/etc/group

d)

/etc/sudoers

14.

How many maximum partitions (primary or extended ) can an MBR have?

a)

10

b)

2

c)

4

d)

1

15.

Which of the following filesystems does not use a journal

a)

ext3

b)

ext2

c)

ext4

d)

filesystem

16.

The file permission 764 means:

a)

Every one can read, group can execute only and the owner can read and write

b)

Every one can read and write, but owner alone can execute

c)

Every one can read, group including owner can write, owner alone can execute

d)

Every one can read and write and execute

17.

The permission -rwxr–r– represented in octal expression will be

a)

777

b)

666

c)

744

d)

711

18.

Which of the following command can be used to change the user password?

a)

user can’t change the password

b)

passwd

c)

passd

d)

pwd