<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on Bald Engineer</title><link>https://www.baldengineer.com/tag/linux</link><description>Recent content in Linux on Bald Engineer</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 28 Mar 2016 01:17:18 +0000</lastBuildDate><atom:link href="https://www.baldengineer.com/tag/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Arduino: Fixing "Serial Port in Use"</title><link>https://www.baldengineer.com/arduino-fixing-serial-port-in-use.html</link><pubDate>Mon, 08 Oct 2012 09:46:16 +0000</pubDate><guid isPermaLink="false">https://www.baldengineer.com/?p=1207</guid><description>&lt;p&gt;Here&amp;rsquo;s a couple of quick tips to get around the Arduino IDE error message &amp;ldquo;Serial Port in Use.&amp;rdquo;  These mostly apply to OSX, but since it is UNIX based, they may make sense for Linux as well.&lt;/p&gt;&#10;&lt;h2 id="list-open-files"&gt;List Open Files&lt;/h2&gt;&#10;&lt;p&gt;Applies to:  OSX, Linux.&lt;/p&gt;&#10;&lt;p&gt;The check to see if another process (like a previous run of avrdude) is holding the serial port open is easy on both Linux and OSX.  Just open a terminal and run the command: &lt;a href="http://linux.die.net/man/8/lsof" title="man lsof"&gt;lsof&lt;/a&gt;.  The command will report back all files that are currently open by the operating system.  UNIX-based operating systems do everything through files, so this command is useful to see what is keeping a serial device open.  Since &lt;a href="http://linux.die.net/man/8/lsof" title="man lsof"&gt;lsof&lt;/a&gt; gives a list of everything that&amp;rsquo;s open, and there are a lot of &amp;ldquo;files&amp;rdquo;,  use &lt;a href="http://www.panix.com/~elflord/unix/grep.html#what" title="man grep"&gt;grep&lt;/a&gt; to only list what is relevant.&lt;/p&gt;</description></item></channel></rss>