Skip to content

Commit d5597c0

Browse files
Update README.md (bregman-arie#368)
* Update README.md
1 parent 49a0de3 commit d5597c0

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,6 +3503,11 @@ Read about it [here](https://en.wikipedia.org/wiki/Cache_replacement_policies)
35033503

35043504
<details>
35053505
<summary>Why not writing everything to cache instead of a database/datastore?</summary><br><b>
3506+
Caching and databases serve different purposes and are optimized for different use cases.
3507+
3508+
Caching is used to speed up read operations by storing frequently accessed data in memory or on a fast storage medium. By keeping data close to the application, caching reduces the latency and overhead of accessing data from a slower, more distant storage system such as a database or disk.
3509+
3510+
On the other hand, databases are optimized for storing and managing persistent data. Databases are designed to handle concurrent read and write operations, enforce consistency and integrity constraints, and provide features such as indexing and querying.
35063511
</b></details>
35073512

35083513
#### Migrations

topics/linux/README.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ find . -iname "*.yaml" -exec sed -i "s/1/2/g" {} \;
237237
<details>
238238
<summary>How to check which commands you executed in the past?</summary><br><b>
239239

240-
history command or .bash_history file
240+
history command or .bash_history file
241+
* also can use up arrow key to access or to show the recent commands you type
241242
</b></details>
242243

243244
<details>
@@ -280,24 +281,37 @@ Alternatively if you are using a distro with systemd it's recommended to use sys
280281

281282
<details>
282283
<summary>Explain Linux I/O redirection</summary><br><b>
284+
In Linux, IO redirection is a way of changing the default input/output behavior of a command or program. It allows you to redirect input and output from/to different sources/destinations, such as files, devices, and other commands.
285+
286+
Here are some common examples of IO redirection:
287+
* Redirecting Standard Output (stdout):
288+
<code>ls > filelist.txt</code>
289+
* Redirecting Standard Error (stderr):
290+
<code>ls /some/nonexistent/directory 2> error.txt</code>
291+
* Appending to a file:
292+
<code>echo "hello" >> myfile.txt</code>
293+
* Redirecting Input (stdin):
294+
<code>sort < unsorted.txt</code>
295+
* Using Pipes: Pipes ("|"):
296+
<code>ls | grep "\.txt$"</code>
283297
</b></details>
284298

285299
<details>
286300
<summary>Demonstrate Linux output redirection</summary><br><b>
287301

288-
ls > ls_output.txt
302+
<code>ls > ls_output.txt</code>
289303
</b></details>
290304

291305
<details>
292306
<summary>Demonstrate Linux stderr output redirection</summary><br><b>
293307

294-
yippiekaiyay 2> ls_output.txt
308+
<code>yippiekaiyay 2> ls_output.txt</code>
295309
</b></details>
296310

297311
<details>
298312
<summary>Demonstrate Linux stderr to stdout redirection</summary><br><b>
299313

300-
yippiekaiyay &> file
314+
<code>yippiekaiyay &> file</code>
301315
</b></details>
302316

303317
<details>
@@ -362,6 +376,7 @@ The command passed to the boot loader to run the kernel
362376

363377
<details>
364378
<summary>In which path can you find the system devices (e.g. block storage)?</summary><br><b>
379+
/dev
365380
</b></details>
366381

367382
<a name="questions-linux-permissions"></a>
@@ -2261,6 +2276,14 @@ It's used in commands to mark the end of commands options. One common example is
22612276
22622277
<details>
22632278
<summary>What is User-mode Linux?</summary><br><b>
2279+
In Linux, user mode is a restricted operating mode in which a user's application or process runs. User mode is a non-privileged mode that prevents user-level processes from accessing sensitive system resources directly.
2280+
2281+
In user mode, an application can only access hardware resources indirectly, by calling system services or functions provided by the operating system. This ensures that the system's security and stability are maintained by preventing user processes from interfering with or damaging system resources.
2282+
2283+
Additionally, user mode also provides memory protection to prevent applications from accessing unauthorized memory locations. This is done by assigning each process its own virtual memory space, which is isolated from other processes.
2284+
2285+
In contrast to user mode, kernel mode is a privileged operating mode in which the operating system's kernel has full access to system resources, and can perform low-level operations, such as accessing hardware devices and managing system resources directly.
2286+
22642287
</b></details>
22652288
22662289
<details>

0 commit comments

Comments
 (0)