{"id":79069,"date":"2026-11-17T01:52:23","date_gmt":"2026-11-17T01:52:23","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=79069"},"modified":"2026-11-17T01:52:23","modified_gmt":"2026-11-17T01:52:23","slug":"linux-basics-01-start","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=79069","title":{"rendered":"Linux Basics 01 \u2014 Linux, the Shell, and Your First Lab"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/bangla.sitestree.com\/?name=linux-course-index\">Linux course index<\/a> \u00b7 <a href=\"https:\/\/bangla.sitestree.com\/?cat=1990\">Linux Basics category<\/a> \u00b7 Lesson 1 of 8<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AI disclosure<\/strong> \u2014 AI-generated content, posted as is. AI can make mistakes. This lesson draws on the linked Open Education posts and adds original explanations or lab examples where useful. The newly written explanations and examples may be freely reused. Linked source material retains its own terms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Learning goal<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Tell the kernel, distribution, terminal, and shell apart, then identify the system you are actually using.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Concepts and setup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The kernel manages hardware and gives programs access to resources such as files, memory, and processes. A distribution bundles the kernel with tools, software repositories, and defaults. The terminal is the interface you type into. Bash is one shell the terminal can run. Linux command names and paths are case-sensitive in an ordinary Linux lab filesystem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use an ordinary user in a disposable Linux VM for this series. Take a snapshot before the administration labs. Prefer a VM over a container for lessons on boot, devices, or kernel policies. Windows users may use WSL for many Basics exercises, but networking and service behavior can differ.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Inspect your shell and operating system<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>printf 'User: %s\\n' &quot;$(id -un)&quot;\nprintf 'Kernel: %s\\n' &quot;$(uname -s)&quot;\ngrep '^PRETTY_NAME=' \/etc\/os-release\nprintf 'Shell process: %s\\n' &quot;$(ps -p &quot;$$&quot; -o comm=)&quot;\ntype cd\npwd\ncommand -v grep<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Possible output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>User: learner\nKernel: Linux\nPRETTY_NAME=&quot;Ubuntu 24.04.2 LTS&quot;\nShell process: bash\ncd is a shell builtin\n\/home\/learner\n\/usr\/bin\/grep<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The distribution line and paths are illustrative. Run the shell-process line directly in Bash. The SHELL variable often names the login shell, which need not be the one you are currently using.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Choose the right help tool<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>help cd | head -n 3\ngrep --help | head -n 2\nman -w grep<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Possible output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd: cd [-L|[-P [-e]] [-@]] [dir]\n    Change the shell working directory.\nUsage: grep [OPTION]... PATTERNS [FILE]...\n\/usr\/share\/man\/man1\/grep.1.gz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The display is abridged. The site&#8217;s help post distinguishes help for shell builtins, man for installed manual pages, and info for GNU manuals when installed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Questions only<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Quick-check questions<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Is Bash the Linux kernel?<\/li>\n\n\n<li>When would you use help cd rather than grep &#8211;help?<\/li>\n\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Assessment questions<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Collect three lines of evidence distinguishing the user, kernel, and distribution.<\/li>\n\n\n<li>Why can a VM run the service labs more faithfully than a minimal container?<\/li>\n\n\n<li>You opened a Bash subshell from a different login shell. Which command inspects the running shell?<\/li>\n\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Questions and answers<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Quick-check answers<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li><strong>Is Bash the Linux kernel?<\/strong><br><strong>Answer<\/strong> \u2014 No. Bash is a user-space program that interprets commands.<\/li>\n\n\n<li><strong>When would you use help cd rather than grep &#8211;help?<\/strong><br><strong>Answer<\/strong> \u2014 Use help cd for the Bash builtin. grep &#8211;help documents the external grep program.<\/li>\n\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Assessment answer key<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li><strong>Collect three lines of evidence distinguishing the user, kernel, and distribution.<\/strong><br><strong>Answer<\/strong> \u2014 Use id -un, uname -s, and grep &#8216;^PRETTY_NAME=&#8217; \/etc\/os-release. Record the outputs separately.<\/li>\n\n\n<li><strong>Why can a VM run the service labs more faithfully than a minimal container?<\/strong><br><strong>Answer<\/strong> \u2014 A VM normally boots its own kernel and init system and presents virtual hardware. A container ordinarily shares a host kernel.<\/li>\n\n\n<li><strong>You opened a Bash subshell from a different login shell. Which command inspects the running shell?<\/strong><br><strong>Answer<\/strong> \u2014 Use ps -p &quot;$$&quot; -o comm= in the interactive subshell.<\/li>\n\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Source articles on this site<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=78653\">20 mixed quiz questions Intro to Linux<\/a><\/li>\n\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=76415\">History of Linux<\/a><\/li>\n\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=78649\">man vs info vs help<\/a><\/li>\n\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=78732\">Understanding Host-Only Networking in Oracle VirtualBox: Concepts, Tools, IP Addressing, DHCP, and Practical Options<\/a><\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Continue the course<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Next lesson 02 \u2014 Paths, Files, and Links.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/bangla.sitestree.com\/?name=linux-course-index\">Linux course index<\/a> \u00b7 <a href=\"https:\/\/bangla.sitestree.com\/?cat=1990\">Linux Basics category<\/a> \u00b7 Lesson 1 of 8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tell the kernel, distribution, terminal, and shell apart, then identify the system you are actually using.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1990],"tags":[],"class_list":["post-79069","post","type-post","status-publish","format-standard","hentry","category-linux-basics","item-wrap"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":79102,"url":"http:\/\/bangla.sitestree.com\/?p=79102","url_meta":{"origin":79069,"position":0},"title":"Linux Administration Course \u2014 Start Here and Lesson Index","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"A 33-lesson Linux course from shell fundamentals to server administration, performance, and a recovery capstone.","rel":"","context":"In &quot;Linux Basics&quot;","block_context":{"text":"Linux Basics","link":"http:\/\/bangla.sitestree.com\/?cat=1990"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79075,"url":"http:\/\/bangla.sitestree.com\/?p=79075","url_meta":{"origin":79069,"position":1},"title":"Linux Basics 07 \u2014 Processes, Jobs, and Signals","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Identify a process you own, inspect its state, and stop it gracefully.","rel":"","context":"In &quot;Linux Basics&quot;","block_context":{"text":"Linux Basics","link":"http:\/\/bangla.sitestree.com\/?cat=1990"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79082,"url":"http:\/\/bangla.sitestree.com\/?p=79082","url_meta":{"origin":79069,"position":2},"title":"Linux Intermediate 06 \u2014 Boot, Services, Logs, and Timers","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Trace the boot-to-service path, inspect logs, and create a timer that runs a tiny user service.","rel":"","context":"In &quot;Linux Intermediate&quot;","block_context":{"text":"Linux Intermediate","link":"http:\/\/bangla.sitestree.com\/?cat=1991"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79099,"url":"http:\/\/bangla.sitestree.com\/?p=79099","url_meta":{"origin":79069,"position":3},"title":"Linux Advanced 2 05 \u2014 Kernel Modules and Resource Limits","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Read kernel module information and identify the current process\u2019s resource-control group without changing the kernel.","rel":"","context":"In &quot;Linux Advanced 2&quot;","block_context":{"text":"Linux Advanced 2","link":"http:\/\/bangla.sitestree.com\/?cat=1993"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78653,"url":"http:\/\/bangla.sitestree.com\/?p=78653","url_meta":{"origin":79069,"position":4},"title":"20 mixed quiz questions Intro to Linux","author":"Sayed","date":"May 20, 2026","format":false,"excerpt":"Below are 20 mixed quiz questions Intro to Linux. They include TF, MCQ, Multi-select, Matching, Ordering, Fill in the Blank, and Short Answer questions, with concept, hands-on, analytical, and higher-order learning coverage. Quiz: Introduction to Linux 1. True\/False Linux is only used on desktop computers. Answer: FalseExplanation: Linux is used\u2026","rel":"","context":"In &quot;Anything Linux&quot;","block_context":{"text":"Anything Linux","link":"http:\/\/bangla.sitestree.com\/?cat=1976"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79076,"url":"http:\/\/bangla.sitestree.com\/?p=79076","url_meta":{"origin":79069,"position":5},"title":"Linux Basics 08 \u2014 Archives, Compression, and a Restore Test","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Create and inspect an archive, then prove that you can recover a file from it.","rel":"","context":"In &quot;Linux Basics&quot;","block_context":{"text":"Linux Basics","link":"http:\/\/bangla.sitestree.com\/?cat=1990"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/79069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79069"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/79069\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79069"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}