<?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>c shell Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/c-shell/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 14 Nov 2018 05:45:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>C Shell – The Programmer’s Shell</title>
		<link>https://www.osradar.com/c-shell-the-programmers-shell/</link>
					<comments>https://www.osradar.com/c-shell-the-programmers-shell/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Wed, 14 Nov 2018 05:45:48 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash shell]]></category>
		<category><![CDATA[c shell]]></category>
		<category><![CDATA[shell]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7299</guid>

					<description><![CDATA[<p>For running the command lines and scripts, there are a number of available shells for the Linux platform. We’ve already talked about ZSH, one of the most popular alternatives for the classic “bash” shell. There are a number of other shells available. Each of them offers a number of different features and facilities. Today, let’s [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/c-shell-the-programmers-shell/">C Shell – The Programmer’s Shell</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>For running the command lines and scripts, there are a number of available shells for the Linux platform. <a href="https://www.osradar.com/switch-to-zsh-on-linux/">We’ve already talked about ZSH</a>, one of the most popular alternatives for the classic “bash” shell. There are a number of other shells available. Each of them offers a number of different features and facilities.</p>
<p>Today, let’s grab and enjoy the C Shell – the shell using the C++ syntax instead of the popular and familiar “bash” syntax. It’s an old shell. However, the shell gets much love from the Unix community, especially the programmers.</p>
<p>For enjoying C Shell, you have to get the Tcsh – a modified version of the original C Shell with new features and enhancements.</p>
<p>Let’s get C Shell right away!</p>
<h1>Installing C Shell (Tcsh)</h1>
<p>C Shell is a very cool shell and a nice alternative to the default Bash shell. However, almost all the Linux distros don’t set C Shell by default. You have to install it and set it as the default shell manually.</p>
<p>Run the following command(s) according to your own Linux distro –</p>
<ul>
<li>Ubuntu</li>
</ul>
<pre class="">sudo apt install tcsh</pre>
<p><img loading="lazy" class="size-full wp-image-7302 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/c-1.png" alt="" width="1080" height="504" srcset="https://www.osradar.com/wp-content/uploads/2018/11/c-1.png 1080w, https://www.osradar.com/wp-content/uploads/2018/11/c-1-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/c-1-768x358.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/c-1-1024x478.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/c-1-696x325.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/c-1-1068x498.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/c-1-900x420.png 900w" sizes="(max-width: 1080px) 100vw, 1080px" /></p>
<ul>
<li>Debian</li>
</ul>
<pre class="">sudo apt-get install tcsh</pre>
<ul>
<li>Fedora</li>
</ul>
<pre class="">sudo dnf install tcsh</pre>
<ul>
<li>OpenSUSE</li>
</ul>
<pre class="">sudo zypper install tcsh</pre>
<ul>
<li>Arch Linux</li>
</ul>
<pre>sudo pacman -S tcsh</pre>
<ul>
<li>Other Linux distros</li>
</ul>
<p>If your system wasn’t listed above, you have to manually find out the package for your system. The package should be named as “tsch” or “c shell”. Tcsh has been around for quite a long time, so your chance of finding out C Shell is pretty high.</p>
<h1>Listing all the shells</h1>
<p>Before we switch to the new C Shell, we have to know the location of the shell(s). Run the following command –</p>
<pre class="">cat /etc/shells/</pre>
<p><img loading="lazy" class="size-full wp-image-7303 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/c-2.png" alt="" width="1077" height="240" srcset="https://www.osradar.com/wp-content/uploads/2018/11/c-2.png 1077w, https://www.osradar.com/wp-content/uploads/2018/11/c-2-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/c-2-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/c-2-1024x228.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/c-2-696x155.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/c-2-1068x238.png 1068w" sizes="(max-width: 1077px) 100vw, 1077px" /></p>
<p>In most cases, you’ll get more than one available shells in your system. Run the following command for the “tcsh” only.</p>
<pre class="">cat /etc/shells | grep tcsh</pre>
<p><img loading="lazy" class="size-full wp-image-7304 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/c-3.png" alt="" width="1072" height="139" srcset="https://www.osradar.com/wp-content/uploads/2018/11/c-3.png 1072w, https://www.osradar.com/wp-content/uploads/2018/11/c-3-300x39.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/c-3-768x100.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/c-3-1024x133.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/c-3-696x90.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/c-3-1068x138.png 1068w" sizes="(max-width: 1072px) 100vw, 1072px" /></p>
<p>It’s time to shift towards Tcsh.</p>
<pre class="">chsh</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img loading="lazy" class="size-full wp-image-7306 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/c-4.png" alt="" width="1072" height="203" srcset="https://www.osradar.com/wp-content/uploads/2018/11/c-4.png 1072w, https://www.osradar.com/wp-content/uploads/2018/11/c-4-300x57.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/c-4-768x145.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/c-4-1024x194.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/c-4-696x132.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/c-4-1068x202.png 1068w" sizes="(max-width: 1072px) 100vw, 1072px" /></p>
<p>Now, when asked about “Login shell”, enter “/bin/tcsh” (without quotes).</p>
<p><img loading="lazy" class="size-full wp-image-7300 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/c-5.png" alt="" width="1082" height="393" srcset="https://www.osradar.com/wp-content/uploads/2018/11/c-5.png 1082w, https://www.osradar.com/wp-content/uploads/2018/11/c-5-300x109.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/c-5-768x279.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/c-5-1024x372.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/c-5-696x253.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/c-5-1068x388.png 1068w" sizes="(max-width: 1082px) 100vw, 1082px" /></p>
<p>Voila! C Shell is your default shell now!</p>
<h1>Reverting back to Bash</h1>
<p>Not interested in C Shell anymore? Run the following command for reverting back to Bash –</p>
<pre>chsh</pre>
<p>&nbsp;</p>
<p>Enter the value –</p>
<pre class="">/bin/bash</pre>
<p><img loading="lazy" class="size-full wp-image-7301 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/c-6.png" alt="" width="1078" height="241" srcset="https://www.osradar.com/wp-content/uploads/2018/11/c-6.png 1078w, https://www.osradar.com/wp-content/uploads/2018/11/c-6-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/c-6-768x172.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/c-6-1024x229.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/c-6-696x156.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/c-6-1068x239.png 1068w" sizes="(max-width: 1078px) 100vw, 1078px" /></p>
<p>Voila! Bash is back!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/c-shell-the-programmers-shell/">C Shell – The Programmer’s Shell</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/c-shell-the-programmers-shell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
