<?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>linux | Automation Dojos</title>
	<atom:link href="https://www.automationdojos.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.automationdojos.com/tag/linux/</link>
	<description>Applied Automation Ops</description>
	<lastBuildDate>Sat, 25 Mar 2023 13:13:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.automationdojos.com/wp-content/uploads/2021/06/Adjo_X_fav_32.png</url>
	<title>linux | Automation Dojos</title>
	<link>https://www.automationdojos.com/tag/linux/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CronTab Basic Commands With Examples</title>
		<link>https://www.automationdojos.com/crontab-basic-commands-examples/</link>
					<comments>https://www.automationdojos.com/crontab-basic-commands-examples/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Fri, 25 Feb 2022 12:53:00 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Gists]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[github-gists]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=25464</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/crontab-basic-commands-examples/">CronTab Basic Commands With Examples</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" fetchpriority="high" srcset="https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic.png 575w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p>
<p>Cron is a time-based job scheduler in Unix-like operating systems, which is used to automate repetitive tasks. It is a daemon (a background process) that runs continuously and executes commands at specified times, called cronjobs. A cronjob can be any command, script or program that needs to be executed at a specific time or interval. [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/crontab-basic-commands-examples/">CronTab Basic Commands With Examples</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/crontab-basic-commands-examples/">CronTab Basic Commands With Examples</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic.png 575w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-crontab-basic-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p>
<p class="proj-desc-hide">Cron is a time-based job scheduler in Unix-like operating systems, which is used to automate repetitive tasks. It is a daemon (a background process) that runs continuously and executes commands at specified times, called cronjobs. A cronjob can be any command, script or program that needs to be executed at a specific time or interval.</p>

<p class="proj-desc-hide">The crontab is a file used by cron to schedule the execution of cronjobs. Each user on the system has their own crontab file, which is stored in the /var/spool/cron directory. The crontab file contains the instructions for the cron daemon on when to run a command, and what command to run. The syntax for the crontab file can seem a bit confusing at first, but it&#8217;s actually quite simple once you understand the structure.</p>



<div><script src="https://gist.github.com/f809966ed813904382602131c82db995.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/tag/linux/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25464" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=linux&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25464" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25464" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/tag/linux/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25464&title=linux" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=linux https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25464" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=25464" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=25464', 'linux', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/crontab-basic-commands-examples/">CronTab Basic Commands With Examples</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/crontab-basic-commands-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Change Your Default Linux Shell</title>
		<link>https://www.automationdojos.com/change-default-linux-shell/</link>
					<comments>https://www.automationdojos.com/change-default-linux-shell/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Thu, 07 Oct 2021 13:00:00 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[How-To Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Gists]]></category>
		<category><![CDATA[how-to-linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux-shell]]></category>
		<category><![CDATA[shell-session]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=22904</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/change-default-linux-shell/">How To Change Your Default Linux Shell</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p>
<p>The shell is a program that accepts and interprets commands. Besides bash, Linux supports many other shell programs, such as ksh, zsh, csh, and fish. Each of these shells have some unique features that sets them apart from other shells. In this article, we shall see multiple methods you could use to change a user’s [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/change-default-linux-shell/">How To Change Your Default Linux Shell</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/change-default-linux-shell/">How To Change Your Default Linux Shell</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-change-linux-shell-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p class="proj-desc-hide">The shell is a program that accepts and interprets commands. Besides bash, Linux supports many other shell programs, such as ksh, zsh, csh, and fish. Each of these shells have some unique features that sets them apart from other shells. In this article, we shall see multiple methods you could use to change a user’s shell in Linux</p>



<div><script src="https://gist.github.com/99fd4b104a55e77cbbad067402da3222.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/tag/linux/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22904" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=linux&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22904" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22904" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/tag/linux/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22904&title=linux" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=linux https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22904" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=22904" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=22904', 'linux', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/change-default-linux-shell/">How To Change Your Default Linux Shell</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/change-default-linux-shell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Types of Linux Shell Sessions</title>
		<link>https://www.automationdojos.com/types-of-linux-shell-sessions/</link>
					<comments>https://www.automationdojos.com/types-of-linux-shell-sessions/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Sun, 07 Feb 2021 00:53:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[interactive-shell]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[login-shell]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell-session]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=22881</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/types-of-linux-shell-sessions/">Types of Linux Shell Sessions</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-linux-shell-session-types.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-linux-shell-session-types.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-linux-shell-session-types-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-linux-shell-session-types-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-linux-shell-session-types-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-linux-shell-session-types-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>(A) Login Shell A&#160;login shell&#160;is a shell where you login, either via the terminal or via SSH. If the user first logs in into a terminal session or SSH via authentication, such a shell session will be considered as a login shell. In other words, a login session is a shell session that starts by [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/types-of-linux-shell-sessions/">Types of Linux Shell Sessions</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/types-of-linux-shell-sessions/">Types of Linux Shell Sessions</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<div role="navigation" aria-label="Table of Contents" class="simpletoc blog-post-toc wp-block-simpletoc-toc"><h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc-list">
<li><a href="#a-login-shell">(A) Login Shell</a>


<ul><li>
<a href="#login-shell-startup-files">Login Shell Startup Files</a>

</li>
</ul>
<li><a href="#b-nonlogin-shell">(B) Non-Login Shell</a>


<ul><li>
<a href="#nonlogin-shell-startup-files">Non-Login Shell Startup Files</a>

</li>
</ul>
<li><a href="#c-interactive-shell">(C) Interactive Shell</a>


<ul><li>
<a href="#interactive-shell-startup-files">Interactive Shell Startup Files</a>

</li>
</ul>
<li><a href="#d-noninteractive-shell">(D) Non-Interactive Shell</a>


<ul><li>
<a href="#noninteractive-shell-startup-files">Non-Interactive Shell Startup Files</a>

</li>
</ul>
<li><a href="#bonus-tips-common-commands">Bonus Tips: Common Commands</a>


<ul><li>
<a href="#how-to-check-shell-session">How To Check Shell Session</a>

</li>
<li><a href="#list-all-installed-shells">List all Installed Shells</a>

</li>
<li><a href="#verify-users-current-shell">Verify User’s Current Shell</a>

</li>
<li><a href="#verify-users-default-shell">Verify User’s Default Shell</a>
</li>
</ul>
</li></ul></div>

<h2 class="wp-block-heading" id="a-login-shell">(A) Login Shell</h2>


<p class="wp-block-paragraph">A&nbsp;<em>login shell</em>&nbsp;is a shell where you login, either via the terminal or via SSH. If the user first logs in into a terminal session or SSH via authentication, such a shell session will be considered as a login shell. In other words, a login session is a shell session that starts by authenticating or identifying the user.</p>


<h3 class="wp-block-heading" id="login-shell-startup-files">Login Shell Startup Files</h3>


<p class="wp-block-paragraph">When you run a login shell it executes a number of files on start-up, first of all <strong>/etc/profile</strong> is sourced (executed in the current environment). As a second step following files are checked for existence and sourced if found in the following order:</p>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/.bash_profile</li>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/.bash_login</li>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/.profile</li>
</ul>
</div>


<h2 class="wp-block-heading" id="b-nonlogin-shell">(B) Non-Login Shell</h2>


<p class="wp-block-paragraph">When the user who is already working on authenticated session starts a new shell session, a &#8216;non-login&#8217; shell session is launched. There is no prior authentication required when the child session is started.</p>



<p class="wp-block-paragraph">This mode describes opening a new terminal, for example, xterm or Gnome Terminal, and executing a shell in it or even opening a new shell session from within the existing login shell.</p>


<h3 class="wp-block-heading" id="nonlogin-shell-startup-files">Non-Login Shell Startup Files</h3>


<p class="wp-block-paragraph">A non-login shell will read the following two files:</p>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/etc/bashrc</li>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/.bashrc</li>
</ul>
</div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h2 class="wp-block-heading" id="c-interactive-shell">(C) Interactive Shell</h2>


<p class="wp-block-paragraph">When a shell session is attached to a terminal, it is called interactive. In other words when the commands are run with user-interaction e.g., from keyboard The key thing here is that the <strong>~/.bashrc</strong> script gets executed behind the scenes every time this interactive shell is initialised</p>


<h3 class="wp-block-heading" id="interactive-shell-startup-files">Interactive Shell Startup Files</h3>


<p class="wp-block-paragraph">In an <em><strong>interactive login</strong></em> <strong><em>shell</em></strong> the sourced files are:</p>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-gear" style="color:#8c8683"></i> /etc/profile</li>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/.bash_profile</li>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/.bash_login</li>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/.profile</li>
</ul>
</div>



<p class="wp-block-paragraph">While in an <strong><em>interactive non-login shell</em></strong> following could be called:</p>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-gear" style="color:#8c8683"></i> /etc/bash.bashrc</li>
<li><i class="sui sui-gear" style="color:#8c8683"></i> ~/.bashrc</li>
</ul>
</div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h2 class="wp-block-heading" id="d-noninteractive-shell">(D) Non-Interactive Shell</h2>


<p class="wp-block-paragraph">When a shell session is not attached to a terminal and probably run from an automated process it is called non-interactive and hence cannot interact with the user. It’s most often run from a script or similar automated means. The shell script runs in its own subshell and the shell only opens to execute the script and closes once the script has terminated.</p>


<h3 class="wp-block-heading" id="noninteractive-shell-startup-files">Non-Interactive Shell Startup Files</h3>


<p class="wp-block-paragraph">In case of <em><strong>non-interactive non-login</strong> shell</em>&nbsp;there is no interaction or login on behalf of the user, so the use case here is mostly automated scripts. In such cases,&nbsp;<code>bash</code>&nbsp;does not read any startup files except some of them may read the file in the $ENV variable</p>



<p class="wp-block-paragraph">However there are odd or rare cases for the sake of argument where the script can emulate an interactive shell by prompting the user to input values. Sourced files in such cases could be:</p>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-gear" style="color:#8c8683"></i> /etc/bashrc</li>
<li><i class="sui sui-gear" style="color:#8c8683"></i> /etc/bash.bashrc</li>
</ul>
</div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h2 class="wp-block-heading" id="bonus-tips-common-commands">Bonus Tips: Common Commands</h2>

<h3 class="wp-block-heading" id="how-to-check-shell-session">How To Check Shell Session</h3>


<p class="wp-block-paragraph">In order to find out if you are logged into your computer using a login shell, type the following echo command in your terminal:</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1006" height="615" src="https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1.png" alt="" class="wp-image-22890" srcset="https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1.png 1006w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1-300x183.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1-768x470.png 768w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1-150x92.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1-696x425.png 696w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1-687x420.png 687w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1-200x122.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-1-400x245.png 400w" sizes="auto, (max-width: 1006px) 100vw, 1006px" /></figure>



<pre class="wp-block-code"><code>echo $0</code></pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">For a login shell, the output starts with a “-” followed by the name of the shell e.g -zsh or -bash. For non-login shell, it&#8217;s just the name of the shell e.g zsh or bash</p>
</blockquote>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="list-all-installed-shells">List all Installed Shells</h3>


<p class="wp-block-paragraph">To see which shells are installed on your computer, use this command</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1009" height="335" src="https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-2.png" alt="" class="wp-image-22891" srcset="https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-2.png 1009w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-2-300x100.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-2-768x255.png 768w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-2-150x50.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-2-696x231.png 696w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-2-200x66.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-2-400x133.png 400w" sizes="auto, (max-width: 1009px) 100vw, 1009px" /></figure>



<pre class="wp-block-code"><code>cat /etc/shells</code></pre>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="verify-users-current-shell">Verify User’s Current Shell</h3>


<p class="wp-block-paragraph">The $SHELL environment variable holds the name of your current shell. To confirm the current shell use :</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1004" height="157" src="https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-3.png" alt="" class="wp-image-22894" srcset="https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-3.png 1004w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-3-300x47.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-3-768x120.png 768w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-3-150x23.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-3-696x109.png 696w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-3-200x31.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-3-400x63.png 400w" sizes="auto, (max-width: 1004px) 100vw, 1004px" /></figure>



<pre class="wp-block-code"><code>echo $SHELL</code></pre>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="verify-users-default-shell">Verify User’s Default Shell</h3>


<p class="wp-block-paragraph">You can also verify the users default shell by looking at the contents of the <strong>/etc/passwd</strong> file. A record contains the user’s account data, such as username, UID, GID, and home directory, among others. Generally the last field indicates the default shell of the user.</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1007" height="616" src="https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4.png" alt="" class="wp-image-22895" srcset="https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4.png 1007w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4-300x184.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4-768x470.png 768w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4-150x92.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4-696x426.png 696w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4-687x420.png 687w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4-200x122.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/02/post-linux-shell-session-4-400x245.png 400w" sizes="auto, (max-width: 1007px) 100vw, 1007px" /></figure>



<pre class="wp-block-code"><code>cat /etc/passwd</code></pre>



<p class="wp-block-paragraph"><strong>Note:</strong> <em>Only the root user is allowed to write to /etc/passwd.</em></p>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/tag/linux/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22881" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=linux&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22881" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22881" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/tag/linux/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22881&title=linux" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=linux https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22881" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=22881" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=22881', 'linux', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/types-of-linux-shell-sessions/">Types of Linux Shell Sessions</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/types-of-linux-shell-sessions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
