Sei sulla pagina 1di 4

26/7/2014 Linux Interview Questions: Best answers to get that job

https://www.udemy.com/blog/linux-interview-questions/ 1/4
Linux interview questions: Best answers to get your foot in the Linux door
JANUARY 15, 2014 BY TIFFANY TAY (HTTPS://WWW.UDEMY.COM/BLOG/AUTHOR/TIFFANYTAY/)
(https://www.udemy.com/mastering-the-
linux-command-line/?
tc=blog.linuxinterviewquestions&utm_source=blog&utm_medium=udemyads&utm_content=post27738&utm_campaign=content-
marketing-blog&xref=blog)Linux is an open-source operating system. It has gained immense popularity
through the years, setting the bar for ease-of-usability, high-grade security features, advanced shell scripting
terminals, and free to users. Consequently, these great features of Linux have made the hiring process more
competitive than ever. The good news is, technical questions asked during phone interviews and even face-to-face
interviews tend to be fairly predictable. Employers rarely ever go into detailed technical scenarios. Even better,
you will encounter many of the same technical questions at almost all interviews you attend. Read on to see the
most commonly asked questions and answers at a Linux interview.
If youre new to Linux, heres an introductory course to setup, manage, and customize your
own Linux desktop. (https://www.udemy.com/introductiontolinux/?
tc=blog.linuxinterviewquestions&utm_source=blog&utm_medium=udemyads&utm_content=post27738&utm_campaign=content-
marketing-blog&xref=blog)
Lets start with some basic questions that might not necessarily be asked (because theyre too easy) but are
essential basics everyone interested in Linux needs to know.
What is the core of Linux Operating System?
The core of the Linux operating system is Kernel. It is broken down into Shell, Command, Script, and Terminal.
Shell is a command Line Interpreter, Command is user Instruction to Computer, Script is collection of commands
stored in a file, and Terminal is a command Line Interface.
What is the basic difference between UNIX and Linux Operating System?
Linux is free and open-source software (allowing programmers to program with Linux not around it), the kernel of
which is created by Linus Torvalds and community. UNIX, on the other hand, is UNIX is copyrighted name only big
companies are allowed to use the UNIX copyright and name, so IBM AIX and Sun Solaris and HP-UX all are UNIX
operating systems.
What is an INODE?
All files have its description stored in a structure called inode. The inode contains info about the file-size, access
and modification time, permission and so on. In addition to descriptions about the file, the inode contains pointers
to the data blocks of the file.
State the syntax of any Linux command.
The correct syntax of Linux command is Command [options] [arguments]. Master the Linux command
line with this guide (https://www.udemy.com/mastering-the-linux-command-
line/?
tc=blog.linuxinterviewquestions&utm_source=blog&utm_medium=udemyads&utm_content=post27738&utm_campaign=content-
marketing-blog&xref=blog).
Now lets move on to the meatier questions that are more likely to be asked:
What is the difference between TCP and UDP?
The basic difference is that TCP establishes a connection before sending data and this allows it to control the
dataflow and guarantee that all packets get delivered. UDP simply chucks datagrams onto the wire and if some get
lost or arrive in bad order theres no way to request a resend. However UDP has low network overhead so some
TOP UDEMY COURSES (50% OFF FOR BLOG READERS):
Become a Web Developer from Scratch! (8100+
students) (https://www.udemy.com/how-to-become-
a-web-developer-from-scratch/?
tc=blog.widget.webdev.p&couponCode=blog13&utm
_source=blog&utm_medium=udemyads&utm_conte
nt=post0&utm_campaign=content-marketing-
blog&xref=blog)
Excel Mastery Course (1010+ students)
(https://www.udemy.com/excel-mastery-course-
part-1-of-5-calculate/?
tc=blog.widget.excel.p&couponCode=blog13&utm_s
ource=blog&utm_medium=udemyads&utm_content
=post0&utm_campaign=content-marketing-
blog&xref=blog)
Advanced Excel Training (42,660+ students)
(https://www.udemy.com/advanced-excel/?
tc=blog.widget.excel.p&couponCode=blog13&utm_s
ource=blog&utm_medium=udemyads&utm_content
=post0&utm_campaign=content-marketing-
blog&xref=blog)
Coding for Entrepreneurs (4810+ students)
(https://www.udemy.com/coding-for-
entrepreneurs/?
tc=blog.widget.coding.p&couponCode=blog13&utm_
source=blog&utm_medium=udemyads&utm_conten
t=post0&utm_campaign=content-marketing-
blog&xref=blog)
iOS Development Code Camp (1155+ students)
(https://www.udemy.com/ios-development-code-
camp/?
tc=blog.widget.ios.p&couponCode=blog13&utm_sou
rce=blog&utm_medium=udemyads&utm_content=p
ost0&utm_campaign=content-marketing-
blog&xref=blog)
Advanced Java Programming (735+ students)
(https://www.udemy.com/advanced-java-
programming/?
tc=blog.widget.java.p&couponCode=blog13&utm_so
urce=blog&utm_medium=udemyads&utm_content=
post0&utm_campaign=content-marketing-
blog&xref=blog)
POPULAR POSTS
(https://www.udemy.com/blog/how-to-build-an-
iphone-app-from-scratch-for-non-technical-people/)
How to Build an iPhone App from Scratch for
Non-Technical People: Your quick and dirty
guide (https://www.udemy.com/blog/how-to-
build-an-iphone-app-from-scratch-for-non-
technical-people/)
(https://www.udemy.com/blog/excel-formulas/)
Excel Formulas: 10 Formulas That Helped Me
Keep My Job
(https://www.udemy.com/blog/excel-formulas/)
(https://www.udemy.com/blog/modern-
(https://www.udemy.com/blog?
tc=blog.button)
26/7/2014 Linux Interview Questions: Best answers to get that job
https://www.udemy.com/blog/linux-interview-questions/ 2/4
lost or arrive in bad order theres no way to request a resend. However UDP has low network overhead so some
services such as DNS resolution, SNMP, DHCP, RIP and VOIP use UDP for its speed and any errors are usually dealt
with on the application layer rather than network layer.
How does DNS resolution work?
A client application requests an IP address from the name server usually by connecting to UDP port 53. The name
server will attempt to resolve the FQDN based on its resolver library, which may contain authoritative information
about the host requested or cached data about that name from an earlier query. If the name server does not
already have the answer, it will turn to root name servers to determine the authoritative for the FQDN in question.
Then, with that information, it will query the authoritative name servers for that name to determine the IP
address.
What is an MX record?
An MX record numerically ranks the mail servers you would prefer to receive email for a domain. The MX record
with the lowest number is preferred over the others, but you can set multiple email servers with the same value
for simple load balancing.
Please describe the Linux boot-up sequence.
There are seven steps to the boot-up sequence. 1) BIOS (basic input/output system) executes the MBR where
Boot Loader sits, 2) MBR- Master boot reads Kernel into memory, 3) GRUB (Grand Unified Bootloader) Kernel starts
Init process, 4) Kernel Kernel executes the /sbin/init program. Init reads inittab, executes rc.sysinit, 5) Init
the rc script than starts services to reach the default run level and 6) Run level programs these programs are
executed from /etc/rc.d/rc*.dl/
How do you search for a pattern and then replace it in an entire file?
You use Sed, or in Vi editor, the search uses character s slash the pattern to be searched, slash the pattern to
replace it with, slash g which stands for entire file.
How do you list and flush all IPtables?
First you use the L switch to view all the currently present rules and then F to flush them.
What is a shell? What are their names?
The shell is the part of the system with which the user interacts. A Unix shell interprets commands such as pwd,
cd or traceroute and sends the proper instructions to the actual operating system itself. The shells currently
available areAns SH, BASH, CSH, TCSH, NOLOGIN, KSH. Other functions of a shell include scripting capability, path
memory, multitasking, and file handling.
What is a zombie?
Cheeky answers get bonus points for this one. But in the Linux world, a zombie process is the process output of ps
by the presence of Z in the STAT column. Zombies are essentially the premature processes whose mature parent
processes died without reaping its children. Note that zombies cant be killed with the usual kill signal.
We hope this questions have helped you in your Linux interview preparation. If youd like a more advanced tutorial
on Linux and running Linux administration, learn to run Linux servers from scratch here
(https://www.udemy.com/linuxacademy/?
tc=blog.linuxinterviewquestions&utm_source=blog&utm_medium=udemyads&utm_content=post27738&utm_campaign=content-
marketing-blog&xref=blog).
You may also like...
(https://www.udemy.com/blog/modern-
language-wars/)
Code Wars: Ruby vs Python vs PHP
[Infographic]
(https://www.udemy.com/blog/modern-
language-wars/)
(https://www.udemy.com/blog/best-
programming-language/)
Top 10 Programming Languages to Learn in
2014 (https://www.udemy.com/blog/best-
programming-language/)
(https://www.udemy.com/blog/how-to-add-
ringtones-to-iphone/)
How to Add Ringtones To Your iPhone (Updated
for iOS 7) (https://www.udemy.com/blog/how-
to-add-ringtones-to-iphone/)
(https://www.udemy.com/blog/best-
powerpoint-presentations/)
8 Best PowerPoint Presentations: How To
Create Engaging Presentations
(https://www.udemy.com/blog/best-
powerpoint-presentations/)
(https://www.udemy.com/blog/java-interview-
questions/)
Java Interview Questions: How to crack the TOP
15 questions
(https://www.udemy.com/blog/java-interview-
questions/)
(https://www.udemy.com/blog/drupal-vs-
joomla-vs-wordpress/)
Drupal vs Joomla vs WordPress: CMS
Showdown [infographic]
(https://www.udemy.com/blog/drupal-vs-
joomla-vs-wordpress/)
(https://www.udemy.com/blog/making-an-app/)
Making an App: 6 Things You Should Consider
Before Getting Started
(https://www.udemy.com/blog/making-an-app/)
(https://www.udemy.com/blog/10-formulas-de-
excel/)
10 Frmulas de Excel para ser Ms Productivo
(https://www.udemy.com/blog/10-formulas-de-
excel/)
26/7/2014 Linux Interview Questions: Best answers to get that job
https://www.udemy.com/blog/linux-interview-questions/ 3/4
Filed Under: For Students (https://www.udemy.com/blog/category/for-students/), Technology
(https://www.udemy.com/blog/category/for-students/technology-for-students/)
(https://www.udemy.com/blog/unix-
shell-scripting-
interview-questions/)
Common UNIX Shell
Scripting Interview
Questions
(https://www.udemy.com/blog/unix-
shell-scripting-
interview-questions/)
(https://www.udemy.com/blog/learn-
linux/)
Learn Linux: The What,
The Why and The How
for the Linux Beginner
(https://www.udemy.com/blog/learn-
linux/)
(https://www.udemy.com/blog/change-
ssh-port/)
Change SSH Port in
Four Simple Steps
(https://www.udemy.com/blog/change-
ssh-port/)
(https://www.udemy.com/blog/in-
unix-shell-script/)
In Unix Shell Script:
Save Yourself Some
Time!
(https://www.udemy.com/blog/in-
unix-shell-script/)
(https://www.udemy.com/blog/customer-
service-skills/)
Customer Service
Skills: More than
Providing Information
(https://www.udemy.com/blog/customer-
service-skills/)
(https://www.udemy.com/blog/best-
photo-editor/)
Best Photo Editors: Four
Packages That Stand
Out
(https://www.udemy.com/blog/best-
photo-editor/)
(https://www.udemy.com/blog/scp-
command-in-linux/)
The SCP Command in
Linux The Easiest Way
to Copy Securely
(https://www.udemy.com/blog/scp-
command-in-linux/)
(https://www.udemy.com/blog/linux-
syslog/)
Linux Syslog
Configuring a Logging
Server
(https://www.udemy.com/blog/linux-
syslog/)
Add a comment 22 comments
mssm197624 (signed in using yahoo)
gud one.. ... guys i work as linux admin at CTS and have mode my own collection of questions and answers, if u want u
can email me at mssmurthy.tech@gmail.com
Reply Like July 20 at 2:46am
Priti Anturkar Bhange K.K.WAGH COLLEGE OF ENGG,NASHIK
please send me study material of linux in detail..... a.priti25@gmail.com
Reply Like July 17 at 2:52am
amrutha.bapat (signed in using yahoo)
send me tooo...bapatamrutha@gmail.com
Reply Like July 2 at 11:06pm 1
jyotan137 (signed in using yahoo)
Please send me linux study material with command and configuration. That is really helpful to me. My mail id is :
jyotan137@yahoo.com
Reply Like June 25 at 1:23pm 1
Kumar Pavan Top Commenter
pls send to me aslo pavan1146@gmail.com
Reply Like June 29 at 4:07am
Sudha Rani Works at Project Engineer at WIPRO
Hi,
Could you please send me the linux material with examples.my email ID: sudharani.varada@gmail.com
Reply Like June 7 at 1:03am
Pradeep Kumar Mumbai, Maharashtra, India
great collection
Reply Like June 5 at 9:01am 1
DiVya Shree Works at Hewlett Packard
Can you please mail me the linux notes. divyashree.s89@gmail.com
Reply Like May 22 at 6:58am 1
Kumar Pavan Top Commenter
pls send to me aslo pavan1146@gmail.com thnks in advance
Reply Like June 29 at 4:08am
Sonu Saifi IT Executive at Effort BPO
can u plzzzz send me the linux notes. My email id.... sonusaifi524@gmail.com
Reply Like May 8 at 11:18pm 1
26/7/2014 Linux Interview Questions: Best answers to get that job
https://www.udemy.com/blog/linux-interview-questions/ 4/4
Return to top of page
Copyright 2014 Epik Theme (http://appfinite.com/themes/epik) on Genesis Framework (http://www.studiopress.com/) WordPress (http://wordpress.org/) Log in
(https://www.udemy.com/blog/wp-login.php)
View 4 more
Facebook social plugin
Reply Like May 8 at 11:18pm 1
Kumar Pavan Top Commenter
pls send to me aslo pavan1146@gmail.com thnks in advance
Reply Like June 29 at 4:08am
Sagar Ikhankar SNJB's College of Engineering
Nice Add one More , what is default permission of folder or file and how to change it ?
Reply Like April 15 at 10:35am
Abdul Kadir System Administrator at Ballistic Learning pvt Ltd
You are talking about umask settings. The default umask setting is 022 and default folder permission is 755
and files permission is 644. it comes from 777 for the folder and 666 for the file.
For more information go through this link : http://www.thegeekstuff.com/2010/04/unix-file-and-directory-per
missions/
Reply Like April 22 at 9:54pm
Sagar Ikhankar SNJB's College of Engineering
Abdul Kadir I gone through it but what is 0022 why these extra zero added to it. in Umask default settings.
Reply Like April 22 at 11:34pm
Sagar Ikhankar SNJB's College of Engineering
I gone through it but what is 0022 why these extra zero added to it. in U mask default settings. Normal
Interview question. what if we add one more 0 like 00022 to it ?
Reply Like April 22 at 11:37pm
Muhammad Merajuddin Ansar HKBK College of Engineering
can u ppl send me the linux notes.
My email id: merajhkbk@gmail.com
Reply Like April 6 at 1:21am 2
Kumar Pavan Top Commenter
pls send to me aslo pavan1146@gmail.com thnks in advance
Reply Like June 29 at 4:09am