<?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>postIt &#187; device</title>
	<atom:link href="https://lakm.us/postit/tag/device/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/postit</link>
	<description>Post-It sticky notes with PasteBin sense</description>
	<lastBuildDate>Thu, 02 Jan 2025 01:33:57 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.18</generator>
	<item>
		<title>Checking whether /dev/video0 or /dev/tty &#8230;</title>
		<link>https://lakm.us/postit/2012/01/checking-whether-devvideo0-or-devtty/</link>
		<comments>https://lakm.us/postit/2012/01/checking-whether-devvideo0-or-devtty/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 06:39:59 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[shell script]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=139</guid>
		<description><![CDATA[Checking whether /dev/video0 or /dev/ttyUSB0 exists or not (module is installed &#038; probed). They're recognized as "character special file" in bash &#91; -b /dev/ttyUSB0 &#93; &#38;&#38; echo &#34;char special file found&#34; &#124;&#124; echo &#34;char special file not found&#34; Compare the above to "block special file" &#91; -b /dev/sda &#93; &#38;&#38; echo &#34;block special file found&#34; [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Checking whether <code>/dev/video0<code> or <code>/dev/ttyUSB0<code> exists or not (module is installed &#038; probed). They're recognized as <em>"character special file"</em> in <code>bash</code></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-b</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>ttyUSB0 <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;char special file found&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;char special file not found&quot;</span></pre></td></tr></table></div>

<p>Compare the above to <em>"block special file"</em></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-b</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;block special file found&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;block special file not found&quot;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2012/01/checking-whether-devvideo0-or-devtty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
