You are on page 1of 5

Linux – Assessment Questions and Answers

1. Which Linux Directory is default for mounting removable storage?


a. /etc
b. /var
c. /lib64
d. /media

2. Which partitions are important at the time of RHEL6 operating system installation?
a. i. /boot ii. / iii. swap
b. i. /grub ii. /home iii. swap
c. i. /boot ii. /var iii. lvm
d. i. /lilo ii. / iii. /tmp

3. Help about a command can be found in which tool?


a. man pages
b. human pages
c. helping pages
d. none of the above

4. Which Linux command would append the text from file ‘test’ to the end of file ‘output’?
a. cat output >> test
b. append output >> test
c. write output >> test
d. cat test >> output

5. The command “rm -r project” will


a. delete the file project from the current working directory
b. delete all the files from the directory project
c. recursively delete the directory project and all its files and subdirectories
d. None of the above

6. Which of the following is NOT TRUE regarding Hard Links?


a. A hard link allows you to change the permissions on the underlying file.
b. A hard link can still access the data if the original file is moved or deleted.
c. You can determine the inode of the original file using a hard link.
d. A hard link can be created in a different filesystem than the original file.

7. Which Linux command can be used to create compressed backup of filesystems and directories?
a. backup
b. bkup
c. tar
d. archive

8. Which Linux command finds all hidden directories in the current directory?
a. find . -type d -name ".*"
b. find ~ -type d -name ".*"
c. find / -type d -name ".*"
d. find . -type d -name "all*"
9. Which Linux command is used to assign ownership over a particular file to a user?
a. chroot
b. chown
c. assign
d. chgrp

10. Which Linux command can be used to format a partition? Assuming that the required partition
exists and also that logical partitioning is used on the Hard Disk.
a. mkfs -t msdos /dev/sda1
b. mkfs.ext4 /dev/null
c. mkfs -t ext4 /dev/sda5
d. mkfs --type=ext4 /dev/sdb7

11. The available free drive space can be determined using the command:
a. dir
b. df
c. du
d. fdisk

12. A Logical Drive in Extended Partition can be included as a Physical Volume into a Volume Group.
a. TRUE
b. FALSE

13. What is the Linux command to be given after ‘lvextend’ to format with xfs the extended area?
a. xfs_growfs
b. resizefs
c. mkfs
d. format

14. Which Linux command is used to check the usage statistics of all activated Swap spaces?
a. ]# swaps -s
b. ]# allswaps show
c. ]# swapon -s
d. ]# None of the above

15. In a user account database, which attributes are supposed to be unique:


a. Username, UID
b. Username, Password
c. Username, Home Directory
d. Username, Shell

16. Which Linux command would you use to change your login password?
a. pass
b. chpass
c. passwd
d. setpass
17. Which Linux command can be used to set an expiration date for a user's password?
a. chage
b. vipw
c. passwd
d. usermod

18. Which Linux command DOES NOT DISPLAY information about logged in users?
a. users
b. w
c. who
d. logins

19. The below line is from the file '/etc/passwd'. Which of the following statements is TRUE, based
on the information? jackd:x:502:1000:Jack Daniel:/home/jackd:/bin/bash
a. User Jack Daniel belongs to the group with groupID 502
b. Shadow passwords are used on the current system
c. The username 'jackd' belongs to the group 'AirlineProject'
d. Members of groupID 1000 can read directory /home/jackd

20. Which Linux command can be used to modify the list of groups a user belongs to?
a. usermod
b. groupadd
c. chgrp
d. userinfo

21. How to make the CPU share more time for a process?
a. ]# cputime -n 20 PID
b. ]# priority -n 40 PID
c. ]# renice -n 15 PID
d. ]# renice -n -8 PID

22. What is the most preferable method to find details of a particular process?
a. ]# ps | grep “name”
b. ]# top | find “name”
c. ]# find / -name “name”
d. ]# ps aux | grep “name”

23. If the system administrator needs to monitor the free disk space every hour on a working day
between 9:00a.m to 10:00p.m. What is the most preferable method to do that?
a. Write a cron task to redirect “df -h” every hour to a text file
b. Write a shell script and execute it manually every hour
c. Perform “df -h" command manually every hour and note down the stats
d. Perform “top” and “free” commands manually every hour and note down the stats

24. The following Linux command is used to defer a task to perform one time in future:
a. ]# on
b. ]# defer
c. ]# at
d. ]# perform
25. Which of the following is not a valid system architecture?
a. i686
b. i386
c. nv64
d. x86_64

26. Which of the following is true regarding repository registration?


a. RHN and EPEL are free and allowed for everyone
b. RHN is subscription based whereas EPEL is free
c. RHN is free whereas EPEL is subscription based
d. RHN and EPEL are both subscription based and not free

27. Which of the following is true regarding package installers ‘rpm’ and ‘yum’?
a. ‘rpm’ does not resolve dependencies automatically
b. ‘yum’ does not resolve dependencies automatically
c. ‘yum’ and ‘anaconda’ are same
d. ‘rpm’ is more advanced compared to ‘yum’

28. Which of the following is NOT a valid IP Address?


a. 190.199.29.146/20
b. 88.250.1.1/12
c. 168.169.0.1/4
d. 228.27.65.12/8

29. Which of the following IP Addresses WILL NOT BE ABLE to communicate with others?
a. 165.10.4.101/5
b. 167.5.12.20/5
c. 163.89.56.200/5
d. 168.10.4.102/5

30. Which Linux command is used to activate a network adapter?


a. ]# active eth0
b. ]# ipup eth0
c. ]# ifdown eth0
d. ]# ifup eth0

31. Which configuration file is used to store the hostname of EL8 Server?
a. /etc/hostname
b. /etc/hosts
c. /etc/resolv.conf
d. /etc/network

32. The main functionality of a firewall is to protect the system from:


a. Unauthenticated network attacks
b. Unwanted virus issues
c. Unsolicited mail spams
d. Unauthorized data access
33. Which Service is responsible for managing Firewall Settings in an EL8 Server?
a. firewallservice
b. firewalld
c. firewalltables
d. firewall-daemon

34. Default Port Numbers for HTTP and FTP Service are:
a. HTTP=8080; FTP=21
b. HTTP=80; FTP=22
c. HTTP=443; FTP=21
d. HTTP=80; FTP=21

35. Which statement is true regarding GRUB?


a. GRUB starts the first process ‘init’
b. GRUB loads BIOS to detect first boot device
c. GRUB loads Linux Kernel on RAM
d. GRUB starts all enabled services based on default Run-Level

You might also like