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.
- What is two types of Linux User Mode ?
Command Line
GUI - What is command for created multiple files at a time?
touch - 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 - List of Permissions and Users
Read, Write and Execute Owner, Group Owners and Others - List of Special Permissions and numerical value.
Set User ID = 4 Set Group ID = 2 Stickybit = 1 - What command to use see Process list in Hierarchical Structure along with PID?
Pstree -P - 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 - What is command for to force close one particular process
kill -9 Processid - What is command to refresh NIC ?
Service network restart - Tell me two types of IP Address configuration
Static IP Address Dynamic IP Address - 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 - What is command to change Hostname without System Restart
hostname newhostname - What is File Path of Network Configuration ?
/etc/sysconfig/network-scripts - What is File Path of DNS Configuration ?
/etc/resolv.conf - How to Update locate DB ?
cd/var/lib/mlocate updatedb - 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. -
What is command for Zip and Unzip files
1. gzip = Compress File 2. gunzip = Uncompress File
-
What is file path of Alias name set by Permanent?
/etc/bashrc -
What is MBR in linux?
Its Master Boot Recorder to help booting operating system. -
What is Two Types of Mount in linux?
Temporary Mount Permanent Mount