wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux final Exam sagar sir

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

How to add more PV to existing VG.

a)

vgcreate centos /dev/sda1

b)

vgcreate centos sda1

c)

vgextend centos /dev/sda1

d)

 vgdisplay centos /dev/sda1

2.

How to reduce existing LV

a)

mount , lvreduce , reduce-fs,umount

b)

umount,reduce-fs,lvreduce,mount

c)

umount, lvreduce,reduce-fs,mount

d)

 lvreduce,reduce-fs,mount,umount

3.

print the lines ending with /bin/bash from /etc/passwd

a)

cat /etc/passwd | grep ^/bin/bash

b)

cat /etc/passwd | grep $/bin/bash

c)

cat /etc/passwd | grep /bin/bash$

d)

 

cat /etc/passwd | grep /bin/passwd$ 



4.

which is true statement below. 


a)

ext4 can not be used in lvm

b)

ext3 is not used in linux

c)

xfs file system can not be reduced.

d)

fat file system can not be used in linux 


5.

What is size of partition table in MBR ?

a)

512 byte

b)

446 byte

c)

64 byte

d)

2 byte

6.

Which of the following have 128 partition

a)

MBR

b)

GPT

c)

chatGPT 


d)

MyGPT

7.

What is true about RAID 0 configuration.

a)

disk mirroring

b)

disk striping 


c)

combination of mirroring and striping

d)

parity bit.

8.

what is true about RAID 1 configuration.

a)

a disk mirroring 


b)

a disk striping

c)

mirroring with parity bit.

d)

parity bit with striping

9.

when you ping google.co.in from where system search IP first ?

a)

 /etc/passwd 


b)

/etc/hosts

c)

 /etc/resolv.conf 


d)

/etc/nsswitch.conf


10.

if we run nslookup which file get checked ?

a)

 /etc/hosts

b)

 /etc/dnsresolv.conf

c)

 /etc/resolv.conf

d)

 /etc/resolve.conf

11.

which command give me configuration files details of installed package vsftpd.

a)

 rpm -qa vsftpd

b)

 rpm -qf vsftpd

c)

 rpm -qc vsftpd

d)

rpm -ivh vsftpd

12.

which command to remove package from linux system.

a)

 rpm -i packagename

b)

 rpm -c packagename

c)

 rpm -r packagename 


d)

rpm -e packagename

13.

what is gpgcheck in repo file ?

a)

 it check signature of file downloaded.

b)

it check size of file downloaded.

c)

it checks nothing but type of file.

d)

 it checks repository owner.

14.

where we can store yum repo file ?

a)

 /etc/repo/

b)

/etc/repo.yum/ 


c)

/etc/yum.repos.d/

d)

/etc/yum.repos/ 


15.

What is network profile in linux networking ?

a)

Network interface configuration

b)

Network DHCP

c)

Network IP

d)

User Network profile

16.

How to set DHCP client in networking.

a)

 ip4.method dhcp

b)

ip4.method auto

c)

 ip4.method dhcpd

d)

ip4.method getip

17.

Command used to set IP in text graphical method.

a)

 nmgrp

b)

nmcli

c)

nmtui 


d)

 nmtgrp

18.

What is false about SELinux ?

a)

it is MAC solution

b)

 it provides MLS and targeted policy

c)

it is Antivirus solution 


d)

it is perfect firewall 


19.

it does not actually deny any operations ( SELinux

a)

enforce mode

b)

permissive mode

c)

MLS

d)

Targeted policy

20.

Which file define selinux type ?

a)

/etc/selinux/config

b)

/etc/sys/selinux 


c)

/etc/selinux

d)

 /selinux/etc/

21.

Which command set permissive mode?

a)

setpermissive 0

b)

setenforce 0

c)

setpermission 1

d)

setenforce 1

22.


Identify the command which is used to create Linux File systems.

a)

fsck

b)

mkfs

c)

fdisk

d)

mount

23.

GNU stands for

a)

Greek Needed Unix

b)

General Unix

c)

GNU's Not Unix

d)

General Noble Unix

24.

In which of the following directory does the configuration files are present?

a)

/bin/

b)

/root/

c)

/etc/

d)

/dev/

25.

Choose whether the following statement is true or false:  The maximum file size in Linux is 255 bytes.

a)

True

b)

False

26.


Identify the command which is used to record sessions in Linux

a)

script

b)

session

c)

Both a and b

d)

None of the above

27.

The main Apache configuration file is?

a)

/etc/httpd/config.ini

b)

/etc/apache.conf

c)

/etc/httpd/conf/httpd.conf

d)

/etc/srm.conf

28.

Which of the following command is used to see the services running in the NFS server?

a)

serverinfo

b)

rpcinfo

c)

infserv

d)

NFSinfo

29.


To create a swap partition by using fdisk, which partition’s system ID type should be used?

a)

1

b)

82

c)

83

d)

5

30.

In which configuration file would you set the hostname?

a)

/etc/sysconfig/network

b)

/etc/sysconfig/hostname

c)

/etc/hostname

d)

/etc/defaults/hostname

31.

Which command will display running process information in realtime?

a)

Top

b)

Show current

c)

Ps current

d)

Process

32.

Which of the following files holds the definition of the local user accounts?

a)

/etc/secret

b)

/etc/users

c)


/etc/passwd

d)

/etc/id

e)


/etc/home

33.

When a new user is added, where does the user ID get stored?

a)

/etc/users

b)

/etc/realm

c)

/etc/pass

d)

/etc/shpasswd

e)

/etc/passwd

34.

Which of the following commands is used to lookup the current IP address of a system?

a)

Less/proc/net/ipconfig

b)

Ifconfig

c)

Showip

d)


Ipconfig

e)

Sysinfo | grep ipaddress

35.

  • Which of the following is a text-mode command that is helpful in identifying CPU information?

a)

Cat /proc/cpuinfo

b)

Lscpu

c)


Lspci

d)


Cfdis

e)

Uname -a

36.

Which of the following command is used to see the services running in the NFS server?

a)

serverinfo

b)

rpcinfo

c)

infserv

d)

NFSinfo

37.

What is copied by ssh-copy-id to remote hostboth private and public keys

a)

SSH public key

b)

Both public and Private keys

c)

SSH Private key

d)

none of these

38.

Which file is used to manage the sudo command

a)

/etc/sudo

b)

/etc/sudoers

c)

/etc/sudo_config

d)

/etc/sudoers.d

39.

Which command shows us recently executed commands on our system

a)

show

b)

old

c)

passwd

d)

history

40.

Which of the following is a Debian-based Linux distributions

a)

Red Hat

b)

Centos

c)

Fedora

d)

Kali Linux