Linux Engineer Interview Questions | Glassdoor

# Linux Engineer Interview Questions

148

Linux engineer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

Mar 11, 2009

### Linux Kernel Engineer at Qualcomm was asked...

Jun 5, 2009
 Write a shortest string copy function.3 Answerswhile(str++ = dst++) {}I should be like the following. while (*str++ = *dst++) {}or simplified to: while(*xptr++ = *yptr++);

### Linux Kernel Engineer at Akamai was asked...

Sep 28, 2009
 Write an algorithm to sort an array of integers in O(n) time?3 AnswersThere are a number of algorithms to do this one is called bucket sort. The interview didn't indicate the answer to me, but it seemed like he was looking for heap sort (which is O(nlogn) )..I believe your answer should be that no sort algorithm (on a sequential computer) can sort an array of numbers in less than O(n lg n) time. So his request couldn't be satisfied.As it is array of integers radix sort can be used which has runtime of O(n). On a computer the size of integer variable is fixed, or constant, hence it become O(n). Any comparative sort will take O(n log(n)) but, the radix and buck sort are not comparative. Lets say the integer size is 32bits, then it's run time will be 32 * O(n), which is same as O(n)

### Linux Systems Engineer - Remote at Rackspace was asked...

Aug 1, 2012
 What's the worst thing you eer broke and how did you cover it up?1 AnswerI gave them a story of formatting a shared LUN but assured them I covered it up in a way I'd never get caught. Then I laughed and admitted to coming clean to the boss. They respected me for coming clean and seemed to enjoy that I was loose enough to joke about the coverup.

### Linux Systems Engineer at Peak Hosting was asked...

Nov 22, 2014
 You have a server that can pull data from the outside world, but not receive it. What do you do?2 AnswersI'm not a networking guy so it took me a while to get this one right. Someone with more networking experience should be able to answer this in like two seconds.Check your firewall, IP tables rules and determine the type and port the traffic is passing from, potentially something as simple as a unmet rule. Check log files for more information. It could be a Switch or router is blocking the traffic, run traceroute UDP and TCP to see where the clogged pipe is. Check the Transmission rates and the Received rates to see packet drops.

### Principal Embedded Linux Engineer at Fitbit was asked...

Aug 18, 2014
 Someone asked how to count the number of bits in a 32 bit integer.1 AnswerI think that the obvious answer that they were looking for was Kernighan's algorithm (look it up). This is something that's pretty easy if you already know it, but would be nearly impossible to come up with on your own if you didn't.

Mar 11, 2009
 Describe what happens when you press a key1 AnswerObviously open-ended. I started at the interrupt level and worked up through the OS and back down to describe painting the frame-buffer.

### Vmware/Linux Engineer at Acxiom was asked...

Jul 29, 2012
 What is the most difficult environment in which you worked ? 1 Answermigration from windows 2000 to windows 2003 environment

### Linux Systems Engineer at TRUSTID (OR) was asked...

Mar 13, 2019
 What I used for Linux auto deployment management1 AnswerAnsible/Tower, Chef, Puppet and my own scripts

### Senior Linux Engineer at Secure-24 was asked...

Apr 14, 2010
 What do you stand for as a Man?1 AnswerHonesty, Integrity Family
110 of 148 Interview Questions