From 393bd4d4ecede96038371a4750042907ee6baa49 Mon Sep 17 00:00:00 2001 From: gfrntz Date: Thu, 2 Feb 2017 00:15:42 +0400 Subject: [PATCH 01/19] Update README.md add a few simple questions --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5bc580b..bd07a5e 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What does "./configure && make && make install" do? * What is puppet/chef/ansible used for? * What is Nagios/Zenoss/NewRelic used for? +* What is Jenkins/TeamCity/GoCI used for? * What is the difference between Containers and VMs? * How do you create a new postgres user? * What is a virtual IP address? What is a cluster? @@ -233,6 +234,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * Tell me about a creative way that you've used SSH? * You have deleted by error a running script, what could you do to restore it? * What will happen on 19 January 2038? +* How to reboot server when reboot command is not responding? ####[[⬆]](#toc) Demo Time: From c354a4c568842071d26f85b208112584d2bcc4d5 Mon Sep 17 00:00:00 2001 From: borgified Date: Tue, 7 Mar 2017 11:56:28 -0800 Subject: [PATCH 02/19] Update README.md Add two questions about packages --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5bc580b..4a0b80a 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,8 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What is bash quick substitution/caret replace(^x^y)? * Do you know of any alternative shells? If so, have you used any? * What is a tarpipe (or, how would you go about copying everything, including hardlinks and special files, from one server to another)? +* How can you tell if the httpd package was already installed? +* How can you list the contents of a package? ####[[⬆]](#toc) Hard Linux Questions: From 4acf8617c676020f9a22bfcd2343660b1d36287e Mon Sep 17 00:00:00 2001 From: borgified Date: Mon, 13 Mar 2017 11:06:35 -0700 Subject: [PATCH 03/19] one more package question --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4a0b80a..6182a54 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What is a tarpipe (or, how would you go about copying everything, including hardlinks and special files, from one server to another)? * How can you tell if the httpd package was already installed? * How can you list the contents of a package? +* How can you determine which package is better: openssh-server-5.3p1-118.1.el6_8.x86_64 or openssh-server-6.6p1-1.el6.x86_64 ? ####[[⬆]](#toc) Hard Linux Questions: From fdef803b5ec915728909937e812467a63c9326e1 Mon Sep 17 00:00:00 2001 From: bharatnc Date: Sun, 19 Mar 2017 12:20:34 -0600 Subject: [PATCH 04/19] added a hard linux question --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5bc580b..e08fff4 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * [biyanisuraj](https://github.com/biyanisuraj) * [pedroguima](https://github.com/pedroguima) * Ben +* [bharatnc](https://github.com/bharatnc) ####[[⬆]](#toc) General Questions: @@ -163,6 +164,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What's LD_PRELOAD and when it's used? * You ran a binary and nothing happened. How would you debug this? * What are cgroups? Can you specify a scenario where you could use them? +* How can you remove a file-name with non-printable/non-type-able characters? ####[[⬆]](#toc) Expert Linux Questions: From d5f32d7dae26b50d918986243578bb7296a6f845 Mon Sep 17 00:00:00 2001 From: bharatnc Date: Tue, 21 Mar 2017 18:14:06 -0600 Subject: [PATCH 05/19] added hard linux questions --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e08fff4..39e3469 100644 --- a/README.md +++ b/README.md @@ -164,9 +164,9 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What's LD_PRELOAD and when it's used? * You ran a binary and nothing happened. How would you debug this? * What are cgroups? Can you specify a scenario where you could use them? -* How can you remove a file-name with non-printable/non-type-able characters? - - +* How can you remove/delete a file with non-printable/non-type-able characters? +* How can you increase or decrease the priority of a process in Linux? +* What are run-levels in Linux? ####[[⬆]](#toc) Expert Linux Questions: * A running process gets ```EAGAIN: Resource temporarily unavailable``` on reading a socket. How can you close this bad socket/file descriptor without killing the process? @@ -195,6 +195,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What is IPoAC (RFC 1149)? + ####[[⬆]](#toc) MySQL questions: * How do you create a user? From 17bed0227ec8a5d27b6845e6460944941a586b40 Mon Sep 17 00:00:00 2001 From: bharatnc Date: Tue, 21 Mar 2017 18:17:23 -0600 Subject: [PATCH 06/19] rephrased a question --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 39e3469..218dea2 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What's LD_PRELOAD and when it's used? * You ran a binary and nothing happened. How would you debug this? * What are cgroups? Can you specify a scenario where you could use them? -* How can you remove/delete a file with non-printable/non-type-able characters? +* How can you remove/delete a file with file-name consisting of only non-printable/non-type-able characters? * How can you increase or decrease the priority of a process in Linux? * What are run-levels in Linux? ####[[⬆]](#toc) Expert Linux Questions: From bdec5495a56223a0690cafc96c90c328a5895838 Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky Date: Wed, 19 Apr 2017 20:13:44 +0300 Subject: [PATCH 07/19] Fixed/moved Expert Questions block to new line --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a9eadde..e46d2a3 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,8 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * How can you remove/delete a file with file-name consisting of only non-printable/non-type-able characters? * How can you increase or decrease the priority of a process in Linux? * What are run-levels in Linux? + + ####[[⬆]](#toc) Expert Linux Questions: * A running process gets ```EAGAIN: Resource temporarily unavailable``` on reading a socket. How can you close this bad socket/file descriptor without killing the process? From 78483a31d8e0a284d90794b1b75b4caee69f311a Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 2 Sep 2017 11:52:58 +0200 Subject: [PATCH 08/19] Additional question - Close #43 thanks @Homan13 for these questions --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e46d2a3..5f2273a 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,9 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What is the difference between Telnet and SSH? * Explain the three load averages and what do they indicate. What command can be used to view the load averages? * Can you name a lower-case letter that is not a valid option for GNU ```ls```? - +* What is a Linux kernel module? +* Walk me through the steps in booting into single user mode to troubleshoot a problem. +* Walk me through the steps you'd take to troubleshoot a 404 error on a web application you administer. ####[[⬆]](#toc) Medium Linux Questions: @@ -145,6 +147,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * How can you tell if the httpd package was already installed? * How can you list the contents of a package? * How can you determine which package is better: openssh-server-5.3p1-118.1.el6_8.x86_64 or openssh-server-6.6p1-1.el6.x86_64 ? +* Can you explain to me the difference between block based, and object based storage? ####[[⬆]](#toc) Hard Linux Questions: @@ -210,7 +213,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * Describe briefly the steps you need to follow in order to create a simple master/slave cluster. * Why should you run "mysql_secure_installation" after installing MySQL? * How do you check which jobs are running? - +* How would you take a backup of a MySQL database? ####[[⬆]](#toc) DevOps Questions: @@ -231,6 +234,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What are the advantages/disadvantages of script vs compiled program? * What's the relationship between continuous delivery and DevOps? * What are the important aspects of a system of continuous integration and deployment? +* How would you enable network file sharing within AWS that would allow EC2 instances in multiple availability zones to share data? ####[[⬆]](#toc) Fun Questions: From c4b5d3e77cf80a56f164edbbde728fa98c5a09f8 Mon Sep 17 00:00:00 2001 From: laixintao Date: Sat, 14 Oct 2017 18:03:01 +0800 Subject: [PATCH 09/19] format markdown title --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5f2273a..ba581fe 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu 1. [Other Great References](#references) -####[[⬆]](#toc) Contributors: +#### [[⬆]](#toc) Contributors: * [moregeek](https://github.com/moregeek) * [typhonius](https://github.com/typhonius) @@ -35,7 +35,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * [bharatnc](https://github.com/bharatnc) -####[[⬆]](#toc) General Questions: +#### [[⬆]](#toc) General Questions: * What did you learn yesterday/this week? * Talk about your preferred development/administration environment. (OS, Editor, Browsers, Tools etc.) @@ -52,7 +52,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * Describe the general file system hierarchy of a Linux system. -####[[⬆]](#toc) Simple Linux Questions: +#### [[⬆]](#toc) Simple Linux Questions: * What is the name and the UID of the administrator user? * How to list all files, including hidden ones, in a directory? @@ -84,7 +84,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * Walk me through the steps in booting into single user mode to troubleshoot a problem. * Walk me through the steps you'd take to troubleshoot a 404 error on a web application you administer. -####[[⬆]](#toc) Medium Linux Questions: +#### [[⬆]](#toc) Medium Linux Questions: * What do the following commands do and how would you use them? * ```tee``` @@ -149,7 +149,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * How can you determine which package is better: openssh-server-5.3p1-118.1.el6_8.x86_64 or openssh-server-6.6p1-1.el6.x86_64 ? * Can you explain to me the difference between block based, and object based storage? -####[[⬆]](#toc) Hard Linux Questions: +#### [[⬆]](#toc) Hard Linux Questions: * What is a tunnel and how you can bypass a http proxy? * What is the difference between IDS and IPS? @@ -175,12 +175,12 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What are run-levels in Linux? -####[[⬆]](#toc) Expert Linux Questions: +#### [[⬆]](#toc) Expert Linux Questions: * A running process gets ```EAGAIN: Resource temporarily unavailable``` on reading a socket. How can you close this bad socket/file descriptor without killing the process? -####[[⬆]](#toc) Networking Questions: +#### [[⬆]](#toc) Networking Questions: * What is localhost and why would ```ping localhost``` fail? * What is the similarity between "ping" & "traceroute" ? How is traceroute able to find the hops. @@ -204,7 +204,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu -####[[⬆]](#toc) MySQL questions: +#### [[⬆]](#toc) MySQL questions: * How do you create a user? * How do you provide privileges to a user? @@ -215,7 +215,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * How do you check which jobs are running? * How would you take a backup of a MySQL database? -####[[⬆]](#toc) DevOps Questions: +#### [[⬆]](#toc) DevOps Questions: * Can you describe your workflow when you create a script? * What is GIT? @@ -236,7 +236,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * What are the important aspects of a system of continuous integration and deployment? * How would you enable network file sharing within AWS that would allow EC2 instances in multiple availability zones to share data? -####[[⬆]](#toc) Fun Questions: +#### [[⬆]](#toc) Fun Questions: * A careless sysadmin executes the following command: ```chmod 444 /bin/chmod ``` - what do you do to fix this? * I've lost my root password, what can I do? @@ -249,7 +249,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * How to reboot server when reboot command is not responding? -####[[⬆]](#toc) Demo Time: +#### [[⬆]](#toc) Demo Time: * Unpack test.tar.gz without man pages or google. * Remove all "*.pyc" files from testdir recursively? @@ -265,7 +265,7 @@ A collection of linux sysadmin/devops interview questions. Feel free to contribu * In a log file with contents as ```