Font size
WorksheetsLinux final Exam sagar sir
Total questions: 40
Worksheet time: 40mins
How to add more PV to existing VG.
vgcreate centos /dev/sda1
vgcreate centos sda1
vgextend centos /dev/sda1
vgdisplay centos /dev/sda1
How to reduce existing LV
mount , lvreduce , reduce-fs,umount
umount,reduce-fs,lvreduce,mount
umount, lvreduce,reduce-fs,mount
lvreduce,reduce-fs,mount,umount
print the lines ending with /bin/bash from /etc/passwd
cat /etc/passwd | grep ^/bin/bash
cat /etc/passwd | grep $/bin/bash
cat /etc/passwd | grep /bin/bash$
cat /etc/passwd | grep /bin/passwd$
which is true statement below.
ext4 can not be used in lvm
ext3 is not used in linux
xfs file system can not be reduced.
fat file system can not be used in linux
What is size of partition table in MBR ?
512 byte
446 byte
64 byte
2 byte
Which of the following have 128 partition
MBR
GPT
chatGPT
MyGPT
What is true about RAID 0 configuration.
disk mirroring
disk striping
combination of mirroring and striping
parity bit.
what is true about RAID 1 configuration.
a disk mirroring
a disk striping
mirroring with parity bit.
parity bit with striping
when you ping google.co.in from where system search IP first ?
/etc/passwd
/etc/hosts
/etc/resolv.conf
/etc/nsswitch.conf
if we run nslookup which file get checked ?
/etc/hosts
/etc/dnsresolv.conf
/etc/resolv.conf
/etc/resolve.conf
which command give me configuration files details of installed package vsftpd.
rpm -qa vsftpd
rpm -qf vsftpd
rpm -qc vsftpd
rpm -ivh vsftpd
which command to remove package from linux system.
rpm -i packagename
rpm -c packagename
rpm -r packagename
rpm -e packagename
what is gpgcheck in repo file ?
it check signature of file downloaded.
it check size of file downloaded.
it checks nothing but type of file.
it checks repository owner.
where we can store yum repo file ?
/etc/repo/
/etc/repo.yum/
/etc/yum.repos.d/
/etc/yum.repos/
What is network profile in linux networking ?
Network interface configuration
Network DHCP
Network IP
User Network profile
How to set DHCP client in networking.
ip4.method dhcp
ip4.method auto
ip4.method dhcpd
ip4.method getip
Command used to set IP in text graphical method.
nmgrp
nmcli
nmtui
nmtgrp
What is false about SELinux ?
it is MAC solution
it provides MLS and targeted policy
it is Antivirus solution
it is perfect firewall
it does not actually deny any operations ( SELinux
enforce mode
permissive mode
MLS
Targeted policy
Which file define selinux type ?
/etc/selinux/config
/etc/sys/selinux
/etc/selinux
/selinux/etc/
Which command set permissive mode?
setpermissive 0
setenforce 0
setpermission 1
setenforce 1
Identify the command which is used to create Linux File systems.
fsck
mkfs
fdisk
mount
GNU stands for
Greek Needed Unix
General Unix
GNU's Not Unix
General Noble Unix
In which of the following directory does the configuration files are present?
/bin/
/root/
/etc/
/dev/
Choose whether the following statement is true or false: The maximum file size in Linux is 255 bytes.
True
False
Identify the command which is used to record sessions in Linux
script
session
Both a and b
None of the above
The main Apache configuration file is?
/etc/httpd/config.ini
/etc/apache.conf
/etc/httpd/conf/httpd.conf
/etc/srm.conf
Which of the following command is used to see the services running in the NFS server?
serverinfo
rpcinfo
infserv
NFSinfo
To create a swap partition by using fdisk, which partition’s system ID type should be used?
1
82
83
5
In which configuration file would you set the hostname?
/etc/sysconfig/network
/etc/sysconfig/hostname
/etc/hostname
/etc/defaults/hostname
Which command will display running process information in realtime?
Top
Show current
Ps current
Process
Which of the following files holds the definition of the local user accounts?
/etc/secret
/etc/users
/etc/passwd
/etc/id
/etc/home
When a new user is added, where does the user ID get stored?
/etc/users
/etc/realm
/etc/pass
/etc/shpasswd
/etc/passwd
Which of the following commands is used to lookup the current IP address of a system?
Less/proc/net/ipconfig
Ifconfig
Showip
Ipconfig
Sysinfo | grep ipaddress
Which of the following is a text-mode command that is helpful in identifying CPU information?
Cat /proc/cpuinfo
Lscpu
Lspci
Cfdis
Uname -a
Which of the following command is used to see the services running in the NFS server?
serverinfo
rpcinfo
infserv
NFSinfo
What is copied by ssh-copy-id to remote hostboth private and public keys
SSH public key
Both public and Private keys
SSH Private key
none of these
Which file is used to manage the sudo command
/etc/sudo
/etc/sudoers
/etc/sudo_config
/etc/sudoers.d
Which command shows us recently executed commands on our system
show
old
passwd
history
Which of the following is a Debian-based Linux distributions
Red Hat
Centos
Fedora
Kali Linux
