{"id":383,"date":"2026-01-06T07:12:09","date_gmt":"2026-01-06T07:12:09","guid":{"rendered":"https:\/\/mitalgoswami.in\/?p=383"},"modified":"2026-01-28T04:36:53","modified_gmt":"2026-01-28T04:36:53","slug":"unix-architecture","status":"publish","type":"post","link":"https:\/\/mitalgoswami.in\/?p=383","title":{"rendered":"UNIX Architecture"},"content":{"rendered":"\n<p>UNIX Architecture is <strong>layer-based<\/strong>, meaning each layer has a specific role and interacts with others in a structured way.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f539; Layers of UNIX Architecture<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1&#xfe0f;&#x20e3; <strong>Hardware<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Physical components like <strong>CPU, memory, disk, keyboard, mouse<\/strong><\/li>\n\n\n\n<li>UNIX does <strong>not<\/strong> allow users to access hardware directly<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2&#xfe0f;&#x20e3; <strong>Kernel (Heart of UNIX)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Core part of UNIX<\/li>\n\n\n\n<li>Manages system resources<\/li>\n<\/ul>\n\n\n\n<p><strong>Main functions of Kernel:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#x1f9e0; Process management<\/li>\n\n\n\n<li>&#x1f4be; Memory management<\/li>\n\n\n\n<li>&#x1f4c2; File system management<\/li>\n\n\n\n<li>&#x1f50c; Device management<\/li>\n\n\n\n<li>&#x1f510; Security &amp; access control<\/li>\n<\/ul>\n\n\n\n<p>&#x27a1;&#xfe0f; Kernel acts as a <strong>bridge between hardware and users<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3&#xfe0f;&#x20e3; <strong>Shell (Command Interpreter)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Interface between <strong>user and kernel<\/strong><\/li>\n\n\n\n<li>Takes user commands and passes them to the kernel<\/li>\n<\/ul>\n\n\n\n<p><strong>Examples of shells:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sh<\/code> (Bourne Shell)<\/li>\n\n\n\n<li><code>bash<\/code> (Bourne Again Shell)<\/li>\n\n\n\n<li><code>csh<\/code>, <code>ksh<\/code><\/li>\n<\/ul>\n\n\n\n<p><strong>Example command:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4&#xfe0f;&#x20e3; <strong>Utilities \/ Commands<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Programs that perform tasks<\/li>\n\n\n\n<li>Examples:\n<ul class=\"wp-block-list\">\n<li><code>ls<\/code> \u2192 list files<\/li>\n\n\n\n<li><code>cp<\/code> \u2192 copy files<\/li>\n\n\n\n<li><code>rm<\/code> \u2192 delete files<\/li>\n\n\n\n<li><code>cat<\/code> \u2192 display file content<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5&#xfe0f;&#x20e3; <strong>Users<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>End users interact with the system using the <strong>shell<\/strong><\/li>\n\n\n\n<li>Can be:\n<ul class=\"wp-block-list\">\n<li>Normal user<\/li>\n\n\n\n<li>Super user (root)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f501; Working Flow of UNIX Architecture<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>User \u2192 Shell \u2192 Kernel \u2192 Hardware\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x2705; Advantages of UNIX Architecture<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Modular and well-structured<\/li>\n\n\n\n<li>Secure and stable<\/li>\n\n\n\n<li>Supports multi-user &amp; multitasking<\/li>\n\n\n\n<li>Easy to maintain and extend<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"582\" height=\"543\" src=\"https:\/\/mitalgoswami.in\/wp-content\/uploads\/2026\/01\/Screenshot-2026-01-06-124056.png\" alt=\"\" class=\"wp-image-384\" style=\"width:433px;height:auto\" srcset=\"https:\/\/mitalgoswami.in\/wp-content\/uploads\/2026\/01\/Screenshot-2026-01-06-124056.png 582w, https:\/\/mitalgoswami.in\/wp-content\/uploads\/2026\/01\/Screenshot-2026-01-06-124056-300x280.png 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>UNIX Architecture is layer-based, meaning each layer has a specific role and interacts with others in a structured way. &#x1f539; Layers of UNIX Architecture 1&#xfe0f;&#x20e3; Hardware 2&#xfe0f;&#x20e3; Kernel (Heart of UNIX) Main functions of Kernel: &#x27a1;&#xfe0f; Kernel acts as a bridge between hardware and users 3&#xfe0f;&#x20e3; Shell (Command Interpreter) Examples of shells: Example command: 4&#xfe0f;&#x20e3; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-unix"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=383"}],"version-history":[{"count":1,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions\/385"}],"wp:attachment":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}