Loading...

Linux Interview Questions and Answers

by GangBoard Admin, December 6, 2018

Linux Interview Questions and Answers

Although a student becomes adept at handling any type of question after successfully completing the Linux tutorial and certification from the institutes of GangBoard, this list of Linux interview questions and answers will come in handy for a quick revision and when you are a bundle of nerves before the interview. However, this Linux interview question and answer is for not only learned Linux professionals but also beginners and those with no knowledge can use it to understand the terminologies and the fundamentals of Linux. The Q & A includes topics from beginner, intermediate, to the most advanced level explained in Layman’s language.

Best Linux Interview Questions and Answers

This field is growing at an astounding pace due to the high demand for certified professionals. Companies prefer individuals who are certified in the technology. We have observed that students who are adept in the use of Linux and even score high marks in the certification fail to justify the same during the interview. This is one of the reasons why we have compiled the elaborate list of questions on Linux and the answers are provided by the expert tutors who themselves are Linux professionals and several are recruiters themselves for leading multinationals hiring Linux certified professionals.

These Linux interview questions and answers are based on mega trending topics. If you master most of these topics, there will be no Linux interview question that you cannot answer and secure your dream job.

1.What is two types of Linux User Mode ?

Command Line

GUI

2.What is command for created multiple files at a time?

touch

3.What is INODE and How to Identify?

Its unique identification code for files and directories, its was generate automatically while create new file and directories

ls -i filename

ls -ldi directoryname

4.List of Permissions and Users

Read, Write and Execute

Owner, Group Owners and Others

5.List of Special Permissions and numerical value.

Set User ID = 4

Set Group ID = 2

Stickybit = 1

6. What command to use see Process list in Hierarchical Structure along with PID?

Pstree -P

7. What is use of “top” command and how to sort Memory and User wise?

Its used to real time monitor hardware utilization of linux machine.

Press M to sort Memory wise result

Press U to sort User wise result

8. What is command for to force close one particular process

kill -9 Processid

9.What is command to refresh NIC ?

Service network restart

10.Tell me two types of IP Address configuration

Static IP Address

Dynamic IP Address

11.How do Enable / Disable Ethernet Device

Open and Edit this file #vi /etc/sysconfig/network-scripts/devicename

For enable ONBOOT = yes

For disable ONBOOT =no

12.What is command to change Hostname without System Restart

hostname newhostname

13.What is File Path of Network Configuration ?

/etc/sysconfig/network-scripts

14.What is File Path of DNS Configuration ?

/etc/resolv.conf

15.How to Update locate DB ?

cd/var/lib/mlocate

updatedb

16. How to edit and save file using editors?

The following commands are used to exit from vi editors.

1. :wq saves the current work and exits the VI.

2. :q! exits the VI without saving current work.

17.What is command for Zip and Unzip files

1. gzip = Compress File

2. gunzip = Uncompress File

18.What is file path of Alias name set by Permanent?

/etc/bashrc

19.What is MBR in linux?

Its Master Boot Recorder to help booting operating system.

20.What is Two Types of Mount in linux?

Temporary Mount

Permanent Mount

21.What is command for delete Partition?

#umount

#palimpsest &

22.What is command for Refresh Partition?

mount -a

23.What is SWAP?

Linux uses swap space to increase the amount of virtual memory available to a host. It can use one or more dedicated swap partitions or a swap file on a regular filesystem or logical volume.

24.What are types can set SWAP?

Temporary set

Permanent set

25.What command use for Error checking and Error Fixing

fsck and e2fsck

26.What is PV, VG, and LVM

PV = Physical Volume

VG = Volume Group

LVM = Logical Volume

27.What is LVM

LVM is used to create logical partitions and during run time we can resize particular partition without data loss.

Empty partitions only can do LVM creation.

28.What are common commands used for Physical Volume

pvcreate

pvs

pvdisplay

29.What command is used for create Volume Group

vgcreate

vgs

30.What is Syntax for LVM Create?

#lvcreate -L partitionsize -n userdefinename volumegroupname

31. What types of Installation Tools in REDHAT?

RPM = Redhat Package Manager

YUM = Yellow Dog Updated Modifier

32. Tell me Linux Boot Sequence Floow?

BIOS → MBR → Boot Loader → Kernal → Runlevel

33. Types of Zone in DNS?

Forward lookup zone

Reverse lookup zone

34.What are inbuilt firwall in Linux ?

IP Tables

Selinux

TCPwrappers

35.What command to Execute disable IPTables permanently?

#iptables -F

Service iptables save

36.What is SELinux?

Its one type of firewall in linux

To block particular service in a Protocol

37.Location of to disable SELinux

/etc/selinux/config

38.What is command to check selinux status ?

getenforce

39.What is LDAP

The Lightweight Directory Access Protocol (LDAP) is a set of open protocols used to access centrally stored information over a network.

40.Which Configuration File Is Required For Ldap Clients?

Ldap.conf

41.What Is The Name Of Main Configuration File Name For Ldap Server?

Slapd.conf

42.How Will You Verify Ldap Configuration File?

slaptest -u

43.What is command package install using YUM without ask Prompt?

yum install packagename -y

44. What is command Uninstall package?

yum remove packagename

45.What is command package re-install using YUM without ask Prompt?

yum reinstall packagename -y

46. Location of Cron file in linux?

/var/spool/cron

47.What is command for to see Particular user Job Schedule ?

crontab -lu username

48.What is command for restart cron service?

service crond restart

49.What is command for restart postfix service?

service postfix restart 50.What is command for FTP service on and restart?

chkconfig vsftpd on

service vsftpd restart

No Comments


Leave a Reply

Your email address will not be published Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

Online Training Quick Enquiry






Get Free Online training