<?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>UNIX系OS &#8211; ケケンタの独学ITブログ</title>
	<atom:link href="https://kekenta-it-blog.com/tag/unix%E7%B3%BBos/feed/" rel="self" type="application/rss+xml" />
	<link>https://kekenta-it-blog.com</link>
	<description>プログラミングやWeb制作の情報を発信</description>
	<lastBuildDate>Mon, 24 Feb 2025 06:30:53 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://kekenta-it-blog.com/wp-content/uploads/2023/07/cropped-KEKENTA-BLOG-32x32.png</url>
	<title>UNIX系OS &#8211; ケケンタの独学ITブログ</title>
	<link>https://kekenta-it-blog.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【UNIX系OS】現在使用しているシェルの種類を確認する方法</title>
		<link>https://kekenta-it-blog.com/unix-shell-type-check/</link>
					<comments>https://kekenta-it-blog.com/unix-shell-type-check/#respond</comments>
		
		<dc:creator><![CDATA[ケケンタ]]></dc:creator>
		<pubDate>Fri, 31 May 2024 12:26:38 +0000</pubDate>
				<category><![CDATA[コマンドライン]]></category>
		<category><![CDATA[ノウハウ]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[UNIX系OS]]></category>
		<guid isPermaLink="false">https://kekenta-it-blog.com/?p=7471</guid>

					<description><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2024/05/eye-catch__unix-shell-type-check__7471-1024x576.jpg" class="webfeedsFeaturedVisual" /></p>このようなことでお困りの方に、現在使用してるシェルの種類を確認する方法をご紹介します。 使用しているシェルの種類によってコマンドやそのオプションが微妙に変わります。「合っているはずなのに何故かコマンドが通らない！」という [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2024/05/eye-catch__unix-shell-type-check__7471-1024x576.jpg" class="webfeedsFeaturedVisual" /></p><div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>絶対に合ってるはずなのにコマンドが通らない……</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p>このようなことでお困りの方に、<strong><span class="swl-marker mark_yellow">現在使用してるシェルの種類を確認する方法</span></strong>をご紹介します。</p>



<p class="is-style-big_icon_point"><strong>使用しているシェルの種類によってコマンドやそのオプションが微妙に変わります。</strong><br>「合っているはずなのに何故かコマンドが通らない！」というときは、本当に自分が思っている通りのシェルが動いているのか、それとも違うシェルが動いているのかどうかを、以下の方法で確認してみましょう。</p>



<h2 class="wp-block-heading">【コマンド】使用しているシェルの種類を確認する</h2>



<p class="is-style-balloon_box2">このコマンドを調べたいシェル上で実行する</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>echo $SHELL</code></pre></div>



<p class="is-style-big_icon_point">LinuxやmacOSなどのUNIX系OSではシェルの種類が$SHELLという変数に格納されています。<br>それを<strong>echoコマンド</strong>によって出力することで、現在使用しているシェルの種類を確認することが可能です。</p>



<p class="is-style-balloon_box2">Ubuntuでの出力結果の例（bashだった場合）</p>



<p class="is-style-bg_stripe">/bin/bash</p>



<h2 class="wp-block-heading">コマンドが通らなく困ったら初歩的な部分を見直してみる</h2>



<p>簡単ですが、以上となります。</p>



<p>コマンドは慣れないときも沼にはまりやすいですが、程よく慣れてきたときにも「あれ？」となりやすい領域かと思います。</p>



<p>もし「合っているはずなのにコマンドが通らない……」という状況に陥ってしまったら、まずは使用しているシェルの種類も疑ってみると、もしかしたら問題を打破できるかもしれません。</p>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>それでは、ご覧いただきありがとうございました！</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>]]></content:encoded>
					
					<wfw:commentRss>https://kekenta-it-blog.com/unix-shell-type-check/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
