I have compiled some sample interview questions for use in testing a potential systems administrator or systems engineer. I have created most of them but have reused some of them from the recent interviews that I have had. It should be one way to separate candidates as well as prepare others for interviews.
Sample questions:
What is a way to find the current running kernel version level?
Various iterations of the uname command (uname -a or uname -r)
How do you update the system on Red Hat 4? Red Hat 5?
up2date -u (RHEL 4) and yum update (RHEL 5)
What is a way to see what service pack and version the Red Hat system is at? CentOS?
cat /etc/redhat-release (Same for both RHEL and CentOS)
What is a way to change a kernel parameter?
sysctl -w parameter=value (persistent)
or
echo 32768 > /proc/sys/fs/file-max (not reboot persistent)
or
change a kernel parameter in /boot/grub/menu.lst as such:
kernel /boot/vmlinuz-2.6.18-128.1.16.el5 ro root=LABEL=/ elevator=deadline (persistent)
or
change the parameter in /etc/sysctl.conf (persistent)
You have a 32 bit system but want to allow RHEL to be able to use more than 4GB of RAM. What kernel do you use to accomplish this task?
Install and boot into the PAE kernel.
Of these filesystems--XFS, EXT3, EXT4, reiserFS, what is the best for large files?
XFS
Of these filesystems--XFS, EXT3, EXT4, reiserFS, what is the best for small files?
reiserFS
Of these filesystems--XFS, EXT3, EXT4, reiserFS, which ones are supported as of RHEL 5.3?
EXT3 and EXT4 (technology preview)
What has Microsoft contributed to the Linux kernel (trivia)?
A kernel module which enabled better performance with its Hyper-V virtualization technology.
You have tried to install an RPM but it has failed because of broken dependencies. How do you override and force the installation anyway?
rpm -i myprogram.rpm --nodeps
How do you set the maximum interval between fsck checks on /dev/sda1 to be one week?
tune2fs -i 1w /dev/sda1
Define dom0 and domU.
dom0 (domain zero) is the server running the Xen, KVM, or QEMU hypervisor. domU (domain unprivileged) is a virtual machine within a Xen, KVM, or QEMU server.
By default, what is the first disk known as within a VMWare virtual machine?
/dev/sda
By default, what is the first disk known as within a Xen domU?
/dev/xvda
Hope this is helpful.
2 comments:
Thank you for sharing helpful "Sample Linux interview questions".
Interview Questions
Hi John,
Three cheers to you! Hooray!!! I feel like I hit the jackpot on Sample Linux interview questions !
I would like to ask you which could be the best Linux Operating System I could install to use Music software and Website creation.
It consists of delaying block allocation until the data is going to be written to the disk, unlike some other file systems, which may allocate the necessary blocks before that step.
By the way do you have any YouTube videos, would love to watch it. I would like to connect you on LinkedIn, great to have experts like you in my connection (In case, if you don’t have any issues).
Thanks and Regards
Kevin
Post a Comment