Merge branch 'master' of github.com:bregman-arie/devops-exercises
This commit is contained in:
commit
aa420a7eed
16
README.md
16
README.md
@ -3020,6 +3020,12 @@ Should be `x=2`
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>How to store the output of a command in a variable?</summary><br><b>
|
<summary>How to store the output of a command in a variable?</summary><br><b>
|
||||||
|
|
||||||
|
```
|
||||||
|
OUTPUT=$(ls -1)
|
||||||
|
echo "${OUTPUT}"
|
||||||
|
```
|
||||||
|
[Source](https://stackoverflow.com/questions/4651437/how-do-i-set-a-variable-to-the-output-of-a-command-in-bash)
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -3521,6 +3527,13 @@ execution or run forever, you may want to run them in the background instead of
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>How can you find how much memory a specific process consumes?</summary><br><b>
|
<summary>How can you find how much memory a specific process consumes?</summary><br><b>
|
||||||
|
<code>
|
||||||
|
mem()
|
||||||
|
{
|
||||||
|
ps -eo rss,pid,euser,args:100 --sort %mem | grep -v grep | grep -i $@ | awk '{printf $1/1024 "MB"; $1=""; print }'
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
[Source](https://stackoverflow.com/questions/3853655/in-linux-how-to-tell-how-much-memory-processes-are-using)
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -13512,6 +13525,9 @@ In Copyleft, any derivative work must use the same licensing while in permissive
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>What is faster than RAM?</summary><br><b>
|
<summary>What is faster than RAM?</summary><br><b>
|
||||||
|
|
||||||
|
CPU cache.
|
||||||
|
[Source](https://www.enterprisestorageforum.com/hardware/cache-memory/)
|
||||||
</b></details>
|
</b></details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
@ -90,4 +90,4 @@ For example:
|
|||||||
1. What is horizontal scaling?
|
1. What is horizontal scaling?
|
||||||
2. The act of adding additional instances to the pool to handle scaling is called ________ scaling
|
2. The act of adding additional instances to the pool to handle scaling is called ________ scaling
|
||||||
|
|
||||||
You are right, both ask about horizontal scaling but it's done from a different angel in every question and in addition, I do believe repetition helps you to learn something in a way where you are not fixed on the way it's asked, rather you understand the concept itself.
|
You are right, both ask about horizontal scaling but it's done from a different angle in every question and in addition, I do believe repetition helps you to learn something in a way where you are not fixed on the way it's asked, rather you understand the concept itself.
|
||||||
|
Loading…
Reference in New Issue
Block a user