diff --git a/Operating_Systems/The_Kernel.md b/Operating_Systems/The_Kernel.md index 19b8d97..8774379 100644 --- a/Operating_Systems/The_Kernel.md +++ b/Operating_Systems/The_Kernel.md @@ -17,7 +17,7 @@ The kernel acts as the primary mediator between the hardware (CPU, memory) and u > A process is just another name for a running program. Process management is the starting, pausing, resuming, scheduling and terminating of processes. -On modern computers it appears that multiple processes can run simultaneously at once. This is only because the processor is so fast that we do not detect changes. In fact access to the CPU is always sequential. The sequence in which multiple programs are allowed to access the CPU is managed by the kernel. +On modern computers it appears that multiple processes can run simultaneously at once. This is only because the processor is so fast that we do not detect changes. In fact access to the CPU is always sequential. The sequence* in which multiple programs are allowed to access the CPU is managed by the kernel. > Consider a system with a one-core CPU. Many processes may be _able_ to use the CPU, but only one process can actually use the CPU at any given time...Each process uses the CPU for a fraction of a second, then pauses, then another process uses it for a fraction of a second and so on... (_How Linux Works: Third Edition_, Brian Ward 2021) diff --git a/Programming_Languages/NodeJS/Crud_with_files.md b/Programming_Languages/NodeJS/io_with_files.md similarity index 100% rename from Programming_Languages/NodeJS/Crud_with_files.md rename to Programming_Languages/NodeJS/io_with_files.md diff --git a/Programming_Languages/Shell_Scripting/File_permissions_and_execution.md b/Programming_Languages/Shell_Scripting/File_permissions_and_execution.md index 7877abc..a81cd8d 100644 --- a/Programming_Languages/Shell_Scripting/File_permissions_and_execution.md +++ b/Programming_Languages/Shell_Scripting/File_permissions_and_execution.md @@ -4,6 +4,8 @@ tags: - shell --- +# File permissions and executables +Every Unix file has a set of permissions that determine whether you can read, write or run (execute) the file. ## Viewing file permissions In order to see file permissions within the terminal, use the `-l` or `-rfl` with the `ls` command. Remember this command can be applied at both the directory and single-file level. For example: @@ -17,7 +19,27 @@ drwxr-xr-x 12 thomas thomas 4096 Sep 19 17:41 thomas-bishop drwxr-xr-x 5 thomas thomas 4096 Sep 4 19:24 ts-kata ```` -## `chmod` +### What the output means + +The first column of the permissions output is known as the file's *mode*. The sequence from left to right is as follows: +``` +- - - - - - - - - - +type user permissions group permissions other permissions +``` +
ps x
ps ax
ps u
ps w