0% found this document useful (0 votes)
21 views25 pages

Linux 11

Uploaded by

dbermarkose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views25 pages

Linux 11

Uploaded by

dbermarkose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 25

1.

When we install a new package in linux system, then

a) all the files of the packages are installed in a single directory

b) different files are installed at different locations of the file system

c) package works just after extraction, installation is not required

d) none of the mentioned

Answer: b

2. Host specific configuration files are installed in

a) /etc directory

b) /lib directory

c) /root directory

d) /bin directory

Answer: a

3. The directory /media is the

a) mount point for removable media

b) mount point for filesystem

c) mount point for removable media & filesystem

d) none of the mentioned

Answer: a

4. What is /bin/sh ?

a) bourne shell

b) hard or symbolic link to the real shell command

c) bash shell

d) both bash shell and bourne shell

Answer: b
5. The /boot directory stores the data that is used

a) before the kernel begins executing user mode programs

b) after the kernel begins executing user mode programs

c) before the bootloader is loaded in the RAM

d) none of the mentioned

Answer: a

6. Which one of the directory does not contain binary files?

a) /bin

b) /sbin

c) /etc

d) none of the mentioned

Answer: c

7. Kernel modules are present in

a) /lib directory

b) /root directory

c) /boot directory

d) none of the mentioned

8. The directory /opt is reserved for

a) installation of add-on application software packages

b) optional booting files

c) optional user specific files

d) none of the mentione

Answer: a

Explanation: None.

9. The directory /srv contains


a) site-specific data which is served by the system

b) all the system files

c) all the service files provided by the specific user

d) none of the mentioned

Answer: a

10. Any file or directory present in the ______ directory may not be reserved between the invocation of
the program.

a) /var

b) /tmp

c) /etc

d) all of the mentioned

Answer: b

Linux is a popular operating system for PC users all over the world

It is an independent portable operating system.

It is a multitasking Operating System and it includes virtual memory shared library, memory
management, TCP/IP networking features, and also includes features of a commercial OS.

Linux distribution is an operating system that is made up of a collection of software based on the Linux
Kernel or you can say distribution contains the Linux Kernel and software supporting libraries.

Features of Linux:

It is a multi-user operating system

It is multitasking open wisdom

It is a highly secure operating system

It can be freely distributed or downloaded it

It has a portable OS that done with the Spark Alpha processor


Virtual memory provided a technique like a swap in and swap out.

Kernel:

The kernel is the core of the Linux-based operating system. It virtualizes the common hardware
resources of the computer to provide each process with its virtual resources. This makes the process the
same as if it is the sole process running on the machine. the kernel is also responsible for preventing and
mediating conflicts between different processes.

Types of kernels:

Monolithic kernel

Hybrid Karnal

Exo kernel

Microkernel

System library: It is the special types of function that are used to implement the functionality of the
operating system.

Shell: It is an interface to the kernel which hides the complexity of the kernel function from the user. it
takes commands from the user and executes the kernel functions.

Hardware Layer: This layer consists of all peripheral devices like RAM, HDD, CPU, etc.

Advantages of Linux:

The main advantage of Linux is it is an open-source operating system. This means that this source code is
easily available for everyone and you are allowed to contribute, modify and distribute the code to
anyone without any permission.

In terms of security, Linux is more secure than any other operating system.

It has large community support.

It provides high stability. it really slows down on freezes and there is no need to reboot it after a short
time.

It is network friendly.

It maintains the privacy of the user.

Linux MCQs

1. Which of the following command is used to count the total number of lines, words, and characters
contained in a file?

Answer - A) wc is used to count the total number of lines, words, and characters contained in a file.

2. Identify the command which is used to remove files.

Answer - b) rm is used to remove files.

3. Identify the hardware structure which is not supported by Red Hat?

Answer - d) Macintosh is not supported by Red Hat.

4. Among the following command which is used with vi editors to delete a single character?

Answer - B) x is used with vi editors to delete a single character.

5. Choose the TCP/IP Protocol which is used for remote terminal connection service?

Answer - D) TELNET is used for remote terminal connection service.

6. Identify the service which is used to translate a domain name to IP address.

Answer - B) DNS is used to translate a domain name to IP address.

7. Which of the following command is used to add a new user to the system?

Answer - D) All of the above is used to add a new is a to the system

8. Total primary partitions that can exist on one drive is_____________


Answer - D) A total of 4 primary partitions that can exist on one drive.

9. FSF stands for __________

Hide

Wrong Answer

Answer - C) FSF stands for Free software Foundation.

10.

Identify the command which is used to remove files.

Hide

Wrong Answer

Answer - C) rmdir is used to remove files.

11.

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


Hide

Wrong Answer

Answer - B) mkfs is used to create Linux File systems.

12.

Identify the one which is not a communication command

Hide

Wrong Answer

Answer - C) grep is not a communication command.

13.

Which of the following is used to back up over typing errors in vi?


Hide

Wrong Answer

Answer - B) # is used to backup over typing errors in vi.

14.

Identify the command used to add printing jobs to the queue.

Hide

Wrong Answer

Answer - D) lpr is used to add printing jobs to the queue

15.

Choose the server which is used with the BIND package?

Hide
Wrong Answer

Answer - C) named is used with the BIND package.

16.

By default, which port does squid listen to?

Hide

Wrong Answer

Answer - B) Squid listens by default port 3128

17.

Which of the following commands is used to display the octal value of the text?

Hide

Wrong Answer

Answer - A) od command is used to display the octal value of the text.


18.

GNU stands for ___________.

Hide

Wrong Answer

Answer - C) GNU stands for GNU’s not Unix.

19.

What is the core of the Linux operating system?

Hide

Wrong Answer

Answer - B) The core of the Linux operating system is a kernel

20.

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

Wrong Answer

Answer - C) /etc/ contains the configuration files in Linux.

21.

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

Hide

Wrong Answer

Answer - A) True. The maximum file size in Linux is 255 bytes.

22.

Identify the OS which is not based on Linux.

Hide
Wrong Answer

Answer - B) BSD is not based on Linux.

23.

Identify the command which is used to record sessions in Linux

Hide

Wrong Answer

Answer - C) Both a and b are used to record session in Linux.

24.

Where is the user password stored?

Hide

Wrong Answer

Answer - A) User password is stored in /etc/passwd.


25.

Identify the default file system type of Linux

Hide

Wrong Answer

Answer - A) ext3 is the default file system type of Linux.

26.

Which command is used to display the operating system name

Hide

Wrong Answer

Answer - B) uname is used to display the operating system name.

27.

Which command is used to print a file


Hide

Wrong Answer

Answer - C) lp command is used to print a file.

28.

Which option of ls command used to view file inode number

Hide

Wrong Answer

Answer - B) -i command used to view file inode number.

29.

Using which of the following command can hidden files be viewed?


Hide

Wrong Answer

Answer - B) ls -a is used to view hidden files.

30.

Which of the following sign is used to represent the user home directory?

Hide

Wrong Answer

Answer - C) ~ is used to represent the user home directory

31.

Identify the command which is used to set terminal IO characteristics.

Hide

Wrong Answer
Answer - B) stty is used to set terminal IO characteristics.

32.

Identify the command which is used to display the unix version.

Hide

Wrong Answer

Answer - B) uname -r is used to display the UNIX version.

33.

Choose the following statement is true or false: Directory is a type of file.

Hide

Wrong Answer

Answer - A) True. The directory is a type of file.

34.

Which of the following is used to represent the top-level directory?


Hide

Wrong Answer

Answer - D) / .is used to represent the top-level directory.

35.

The dialogue control and token management are responsible for?

Hide

Wrong Answer

Answer - D) The dialogue control and token management are responsible for Network layer.

36.

The main Apache configuration file is?


Hide

Wrong Answer

Answer - C) /etc/httpd/conf/httpd.conf is the main Apache configuration file.

37.

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

Hide

Wrong Answer

Answer - A) serverinfo is used to see the services running in NFS server.

38.

Which of the following command is used to sort the lines of data in a file in alphabetical order?

Hide

Wrong Answer
Answer - C) sort is used to sort the lines of data in a file in alphabetical order.

39.

Routing is performed by which of the following layers

Hide

Wrong Answer

Answer - D) Routing is performed by session layer.

40.

What type of installations requires a special boot disk?

Hide

Wrong Answer

Answer - D) All of the above require a special boot disk.

41.
RPM ________

Hide

Wrong Answer

Answer - C) RMP stands for Red Hat Package Manager.

42.

Identify this script which is run for setting a global defaults for users

Hide

Wrong Answer

Answer - D) /etc/profile is run for setting global defaults for users.

43.

Linux Kernel was founded by?


Hide

Wrong Answer

Answer - B) Linus Torvalds founded Linux kernel

44.

Which of the following command can force all buffers to disk?

Hide

Wrong Answer

Answer - D) sync can force all buffers to disk.

45.

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

Wrong Answer

Answer - B) Partition’s system ID type 82 must be used.

46.

Which of the following command is used to change the working directory?

Hide

Wrong Answer

Answer - D) cd command is used to change the working directory.

47.

LILO stands for _____________-

Hide

Wrong Answer

Answer - B) LILO stands for Linux loader.


48.

NIS

Hide

Wrong Answer

Answer - C) NIS is Network Information Service.

49.

OSS stands for _____________

Hide

Wrong Answer

Answer - D) OSS stands for Open Source Software.

50.

Which of the following commands is used to display and create files?


Hide

Wrong Answer

Answer - A) cat is used to display and create files.

You might also like