diff --git a/README.md b/README.md
index 16bcac0..82d6e09 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
:information_source: This repo contains questions and exercises on various technical topics, sometimes related to DevOps and SRE :)
-:bar_chart: There are currently **1519** questions
+:bar_chart: There are currently **1537** questions
:books: To learn more about DevOps and SRE, check the resources in [devops-resources](https://github.com/bregman-arie/devops-resources) repository
@@ -2168,7 +2168,7 @@ Systems keep an ARP look-up table where they store information about what IP add
-What is TTL?
+What is TTL? What does it helps to prevent?
@@ -2356,8 +2356,8 @@ Read more [here](https://www.globalsign.com/en/blog/what-is-hsts-and-how-do-i-us
What is your experience with Linux?
Only you know :)
-Some ideas on what to focus:
+For example:
* Administration
* Troubleshooting & Debugging
* Storage
@@ -2369,80 +2369,17 @@ Some ideas on what to focus:
Explain what each of the following commands does and give an example on how to use it:
+ * touch
* ls
* rm
- * rmdir (can you achieve the same result by using rm
?)
- * touch
- * whoami
- * man
- * pwd
- * df
- * file
* cat
* cp
- * mv
- * grep
- * nslookup or dig
* mkdir
- * find
- * alias
-
- * ls - list files and directories. You can highlight common flags like -d, -a, -l, ...
- * rm - remove files and directories. You should mention -r for recursive removal
- * rmdir - remove directories but you should mention it's possible to use rm for that
- * touch - update timestamps but common usage is to create files
- * whoami - current logged-in user
- * man - reference manuals
- * pwd - print working directory
- * df - provides info regarding file system disk space usage
- * file - to find out what kind of a file it is
- * cat - quickly read a file without opening the file, it only displays the file contents
- * cp - make a copy of files and pasting it to a destination
- * mv - moving files and also renaming them
- * grep - print lines that match patterns. Could be nice to mention -v, -r, -E flags
- * nslookup or dig - query nameservers
- * mkdir - create a directory if it does not exist already
- * find - searching files
- * alias - shorten repetitive long commands for efficient command line usage
+
-What each of the following commands does?
-
- * cd /
- * cd ~
- * cd
- * cd ..
- * cd .
- * cd -
- cd or "change directory" helps one to change directory when they want to.
-
- * cd / -> change to the root directory
- * cd ~ -> change to your home directory
- * cd -> change to your home directory
- * cd .. -> change to the directory above your current i.e parent directory
- * cd . -> change to the directory you currently in
- * cd - -> change to the last visited path
-
-
-
-How to rename the name of a file or a directory?
-
-mv command.
-
-
-
-What is stored in each of the following paths?
-
- * /bin, /sbin, /usr/bin and /usr/sbin
- * /etc
- * /home
- * /var
- * /tmp
-
-
-
-What is special about /tmp directory when compared to other directories?
+Some of the commands in the previous question can be run with the -r/--recursive flag. What does it do?
@@ -2459,12 +2396,110 @@ These are files directly not displayed after performing a standard ls direct lis
`ls -a`
+
+Explain what each of the following commands does and give an example on how to use it:
+
+ * sed
+ * grep
+ * cut
+ * awk
+
+
+
+
+What each of the following commands does?
+
+ * pwd
+ * cd
+ * find
+ * ls
+
+
+
+
+What each of the following commands does?
+
+ * cd /
+ * cd ~
+ * cd
+ * cd ..
+ * cd .
+ * cd -
+
+
+ * cd / -> change to the root directory
+ * cd ~ -> change to your home directory
+ * cd -> change to your home directory
+ * cd .. -> change to the directory above your current i.e parent directory
+ * cd . -> change to the directory you currently in
+ * cd - -> change to the last visited path
+
+
+
+How to rename the name of a file or a directory?
+
+Using the `mv` command.
+
+
+
+Specify which command would you use (and how) for each of the following scenarios
+
+ * Remove a directory with files
+ * Display the content of a file
+ * Provides access to the file /tmp/x for everyone
+ * Change working directory to user home directory
+ * Replace every occurrence of the word "good" with "great" in the file /tmp/y
+
+
+
+How can you check what is the path of a certain command?
+
+ * whereis
+ * which
+
+
+
+Explain redirection
+
+
Explain piping. How do you perform piping?
Using a pipe in Linux, allows you to send the output of one to another (also called redirection). For example: `cat /etc/services | wc -l`
+### Linux FHS
+
+
+In Linux FHS (Filesystem Hierarchy Standard) what is the /
?
+
+
+
+What is stored in each of the following paths?
+
+ * /bin, /sbin, /usr/bin and /usr/sbin
+ * /etc
+ * /home
+ * /var
+ * /tmp
+
+
+
+What is special about the /tmp directory when compared to other directories?
+
+
+
+What kind of information one can find in /proc?
+
+
+
+Can you create files in /proc?
+
+
+
+In which path can you find the system devices (e.g. block storage)?
+
+
Running the command df
you get "command not found". What could be wrong and how to fix it?
@@ -2506,7 +2541,7 @@ Alternatively if you are using a distro with systemd it's recommended to use sys
history command or .bash_history file
-##### Permissions
+##### Linux Permissions
How to change the permissions of a file?
@@ -2558,13 +2593,29 @@ Its a bit that only allows the owner or the root user to delete or modify the fi
-You try to delete a file but it fails. Name at least three different reason as to why it could happen
+What is sudo? How do you set it up?
+
+
+
+True or False? In order to install packages on the system one must be the root user or use the sudo command
+
+True
+
+
+
+Explain what are ACLs. For what use cases would you recommend to use them?
+
+
+
+You try to create a file but it fails. Name at least three different reason as to why it could happen
* No more disk space
* No more inodes
* No permissions
+#### Linux systemd
+
What is systemd?
@@ -2655,14 +2706,6 @@ tail -f
How to debug binaries?
-
-What kind of information one can find in /proc?
-
-
-
-Can you create files in /proc?
-
-
What is the difference between CPU load and utilization?
@@ -2756,10 +2799,6 @@ It means that the key of the remote host was changed and doesn't match the one t
What is SSH port forwarding?
-
-Explain redirection
-
-
#### Linux - Globbing, Wildcards
@@ -2917,6 +2956,7 @@ There are many answers for this question. One way is running `df -T`
How to create a
+
* new empty file
* a file with text (without using text editor)
* a file with given size
@@ -3143,6 +3183,10 @@ If you mention at any point ps command with arugments, be familiar with what the
It is the first process executed by the kernel during the booting of a system. It is a daemon process which runs till the system is shutdown. That is why, it is the parent of all the processes
+
+Can you describe how processes are being created?
+
+
How to change the priority of a process? Why would you want to do that?
@@ -3179,6 +3223,7 @@ Kerberos
File descriptor, also known as file handler, is a unique number which identifies an open file in the operating system.
In Linux (and Unix) the first three file descriptors are:
+
* 0 - the default data stream for input
* 1 - the default data stream for output
* 2 - the default data stream for output related to errors
@@ -3283,7 +3328,8 @@ Technically, yes.
* SMTP
* HTTP
* DNS
- * HTTPS
+ * HTTPS
+
* SSH - 22
* SMTP - 35
@@ -3509,10 +3555,6 @@ Use su - to switch to root
Re-install the OS IS NOT the right answer :)
-
-What is sudo? How do you set it up?
-
-
What is /etc/skel?
@@ -3532,7 +3574,7 @@ Using the `last` command.
* id
-#### Linux - Hardware
+#### Linux Hardware
Where can you find information on the processor?
@@ -3631,24 +3673,12 @@ From Wikipedia: "AWK is domain-specific language designed for text processing an
`awk 'length($0) > 79' file`
-#### Linux - Commands
-
What the lsof
command does? Have you used it? What for?
-What commands you can use for searching files and/or directories?
-
- * find
- * locate
-
-
-
-How can you check what is the path of a certain command?
-
- * whereis
- * which
+What is the difference between find and locate?
#### System Calls
@@ -3739,10 +3769,6 @@ There are a couple of ways to do that:
* fallocate -l 2097152 new_file.txt
-
-Can you describe how processes are being created?
-
-
What does the following block do?:
@@ -3998,7 +4024,8 @@ It's used by one entity until this entity decides to get rid of it. Take for exa
* Module
* Play
* Playbook
- * Role
+ * Role
+
Task – a call to a specific Ansible module
Module – the actual unit of code executed by Ansible on your own host or a remote host. Modules are indexed by category (database, file, network, …) and also referred to as task plugins.
@@ -10435,7 +10462,13 @@ DNS uses UDP port 53 for resolving queries either regular or reverse. DNS uses T
-What is Round Robin DNS?
+True or False? DNS can be used for load balancing
+
+True.
+
+
+
+Which techniques a DNS can use for load balancing?
@@ -10804,6 +10837,13 @@ The server didn't receive a response from another server it communicates with in
* URL Hash
+
+What are the drawbacks of round robin algorithm in load balancing?
+
+ * A simple round robin algorithm knows nothing about the load and the spec of each server it forwards the requests to. It is possible, that multiple heavy workloads requests will get to the same server while other servers will got only lightweight requests which will result in one server doing most of the work, maybe even crashing at some point because it unable to handle all the heavy workloads requests by its own.
+ * Each request from the client creates a whole new session. This might be a problem for certain scenarios where you would like to perform multiple operations where the server has to know about the result of operation so basically, being sort of aware of the history it has with the client. In round robin, first request might hit server X, while second request might hit server Y and ask to continue processing the data that was processed on server X already.
+
+
What is an Application Load Balancer?
@@ -10814,6 +10854,12 @@ The server didn't receive a response from another server it communicates with in
L4 and L7
+
+Can you perform load balancing without using a dedicated load balancer instance?
+
+Yes, you can use DNS for performing load balancing.
+
+
What is DNS load balancing? What its advantages? When would you use it?