diff --git a/README.md b/README.md
index 333c890..c6b5a79 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
:information_source: This repository contains interview questions on various DevOps related topics
-:bar_chart: There are currently **111** interview questions
+:bar_chart: There are currently **115** interview questions
:warning: Some answers might be only partial and shouldn't be used as they are in interviews
@@ -337,7 +337,7 @@ Network questions can be found [here](https://github.com/bregman-arie/computer-n
Explain what each of the following commands does and given an example on how to use it
* ls
* rm
- * rmdir (can you achieve the same result by using `rm`?)
+ * rmdir (can you achieve the same result by using rm
?)
* grep
* wc
* df
@@ -387,6 +387,14 @@ Network questions can be found [here](https://github.com/bregman-arie/computer-n
What is an exit code? What exit codes are you familiar with?
+
+An exit code (or return code) represents the code returned by a child process to its
+parent process.
+
+0 is an exit code which represents success while anything higher than 1 represents error.
+Each number has different meaning, based on how the application was developed.
+
+I consider this as a good blog post to read more about it: https://shapeshed.com/unix-exit-codes
@@ -449,10 +457,27 @@ Terminated
Zombie
+
+Find all files which end with '.yml' and replace the number 1 in 2 in each file
+
+find /some_dir -iname \*.yml -exec sed -i "s/1/2/g" {} \;
+
+
+
+How to check how much free memory a system has? How to check memory consumption by each process?
+
+You can use the commands top
and free
+
#### :star: Advanced
+
+How to delete the last word from each line in a file?
+
+sed "s/\s*\w\+\s*$//" file
+
+
How to create a file of a certain size?
@@ -620,6 +645,12 @@ The benefits of Terraform over the other tools:
terraform apply
will provision the resources specified in the .tf files.
+
+How to write down a variable which changes by an external source or during terraform apply
?
+
+You use it this way: variable “my_var” {}
+
+
## Docker