<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Saurabh Singh</title>
	<atom:link href="https://www.emblogic.com/blog/author/ssaurabhsingh610/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Shell &amp; Shell Scripting</title>
		<link>https://www.emblogic.com/blog/02/20913/</link>
		<comments>https://www.emblogic.com/blog/02/20913/#comments</comments>
		<pubDate>Sat, 29 Feb 2020 07:16:01 +0000</pubDate>
		<dc:creator><![CDATA[Saurabh Singh]]></dc:creator>
				<category><![CDATA[Shell Scripts]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=20913</guid>
		<description><![CDATA[Shell &#38; Shell Scripting Shell is the medium or intermediator between the user and computer and act as an form of wrapper around the Operating system hence termed Shell. It helps the user to connect with the system kernels to &#8230; <a href="https://www.emblogic.com/blog/02/20913/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p style="margin-bottom: 0cm;line-height: 100%" align="center"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: x-large"><i><span style="text-decoration: underline"><b>Shell &amp; Shell Scripting</b></span></i></span></span></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Shell is the medium or intermediator between the user and computer and act as an form of wrapper around the Operating system hence termed Shell. It helps the user to connect with the system kernels to perform huge and various task hence the shell scripting is needed. Shell interpret the commands that acts as an interface for the access to operating system services such as Unix, Linux, Windows etc. Shell is the layer of programing on the outermost layer of the operating system which interprets commands and send necessary system calls to the kernel for execution of program. Today, there are many shells avavilable like bash, bsh, ksh, csh, zsh powershell etc. Among all the shells “bash” is the most and frequently used shell world wide. Shell is capable of automate very complex sequences of commands and most linux system are designed to be updated from typed in commands i.e. from shell. Shell also powers many of graphical commands that is run by users. Shell plays the most important role to better understand the computer. See below figure to better understand.</span></span></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><a href="http://www.emblogic.com/blog/wp-content/uploads/2020/02/Shell-figure.png"><img class="wp-image-20915 size-full aligncenter" src="http://www.emblogic.com/blog/wp-content/uploads/2020/02/Shell-figure.png" alt="Shell figure" width="300" height="291" /></a></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="center"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: medium"><span style="text-decoration: underline">Linux Shell</span></span></span></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="center">
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Shell classified in two categories.</span></span></p>
<ul>
<li>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Command Line Shell</span></span></p>
</li>
<li>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Graphical shell</span></span></p>
</li>
</ul>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="text-decoration: underline"><b><span style="font-size: large">Command Line Shell:- </span></b></span><span style="font-size: large"><span style="text-decoration: none"><span style="font-weight: normal">Shell can be accessed by user using command line interface i.e. called Terminal in linux or Unix operating System. And Command Prompt in Windows operating System. </span></span></span><span style="font-size: large"><span style="text-decoration: none"><span style="font-weight: normal">Shell takes commands by user and call operating system to run those commands.</span></span></span></span></p>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">For Example: ls, ls -a, cat, etc.</span></span></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large"><span style="text-decoration: underline"><b>Graphical Shell:-</b></span></span><span style="font-size: large"><span style="text-decoration: none"><span style="font-weight: normal">Graphical shells provide means for manipulating programs based on graphical user interface (GUI), by allowing for operations such as opening, closing, moving and resizing.</span></span></span></span></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="center"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large"><span style="text-decoration: underline"><b>Shell Scripting</b></span></span></span></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Usually, shells accepts commands as input from users and execute them. But sometimes we need to perform multiple operations using several commands hence to perform these operations we have to type all commands one by one to get the result.</span></span></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">So to avoid repetitive work and run all commands at once we need <b>Shell </b><b>S</b><b>cripting</b>. In Shell scipting we group number of commands in a file, and when you run shell script file, shell will executes the commands in the script file order. A shell script have syntax just like any other programming language.</span></span></p>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Shell scripts consist below mention elements:-</span></span></p>
<ul>
<li>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Shell Keywords</span></span></p>
</li>
<li>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Shell commands</span></span></p>
</li>
<li>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Functions</span></span></p>
</li>
</ul>
<p style="margin-bottom: 0cm;line-height: 100%" align="center"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large"><span style="text-decoration: underline"><b>Advantages of Shell &amp; Shell Scripting</b></span></span></span></p>
<ul>
<li>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Shell can automate very complex sequences of commands.</span></span></p>
</li>
<li>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Shell allows you to create new commands using other commands.</span></span></p>
</li>
<li>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Scripting helps you to add new functions easily to the shell.</span></span></p>
</li>
<li>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Writing shell scripts are much quicker and easier.</span></span></p>
</li>
<li>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Interactive Debugging.</span></span></p>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left">
</li>
</ul>
<p style="margin-bottom: 0cm;line-height: 100%" align="center"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large"><span style="text-decoration: underline"><b>Disadvantages of Shell &amp;Shell Scripting</b></span></span></span></p>
<ul>
<li>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">Graphical environment is not userfriendly which is why scripting is being used less.</span></span></p>
</li>
<li>
<p style="margin-bottom: 0cm;line-height: 100%" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large"><span style="text-decoration: none"><span style="font-weight: normal">Provide minimal</span></span><span style="text-decoration: none"><span style="font-weight: normal"> data Structures.</span></span></span></span></p>
</li>
</ul>
<p style="margin-bottom: 0cm;font-weight: normal;line-height: 100%;text-decoration: none" align="left"><span style="font-family: Noto Serif CJK KR, serif"><span style="font-size: large">At last we must say, learning the Shell Scripting can help you better understand your computer.</span></span></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/02/20913/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
