You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3503,6 +3503,11 @@ Read about it [here](https://en.wikipedia.org/wiki/Cache_replacement_policies)
3503
3503
3504
3504
<details>
3505
3505
<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.
<summary>How to check which commands you executed in the past?</summary><br><b>
239
239
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
241
242
</b></details>
242
243
243
244
<details>
@@ -280,24 +281,37 @@ Alternatively if you are using a distro with systemd it's recommended to use sys
280
281
281
282
<details>
282
283
<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.
<summary>Demonstrate Linux output redirection</summary><br><b>
287
301
288
-
ls > ls_output.txt
302
+
<code>ls > ls_output.txt</code>
289
303
</b></details>
290
304
291
305
<details>
292
306
<summary>Demonstrate Linux stderr output redirection</summary><br><b>
293
307
294
-
yippiekaiyay 2> ls_output.txt
308
+
<code>yippiekaiyay 2> ls_output.txt</code>
295
309
</b></details>
296
310
297
311
<details>
298
312
<summary>Demonstrate Linux stderr to stdout redirection</summary><br><b>
299
313
300
-
yippiekaiyay &> file
314
+
<code>yippiekaiyay &> file</code>
301
315
</b></details>
302
316
303
317
<details>
@@ -362,6 +376,7 @@ The command passed to the boot loader to run the kernel
362
376
363
377
<details>
364
378
<summary>In which path can you find the system devices (e.g. block storage)?</summary><br><b>
379
+
/dev
365
380
</b></details>
366
381
367
382
<aname="questions-linux-permissions"></a>
@@ -2261,6 +2276,14 @@ It's used in commands to mark the end of commands options. One common example is
2261
2276
2262
2277
<details>
2263
2278
<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.
0 commit comments