<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Terminal on Sam Bloomquist</title><link>https://sambloomquist.com/tags/terminal/</link><description>Recent content in Terminal on Sam Bloomquist</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0&lt;/a></copyright><lastBuildDate>Sun, 12 Jul 2026 10:26:19 -0500</lastBuildDate><atom:link href="https://sambloomquist.com/tags/terminal/index.xml" rel="self" type="application/rss+xml"/><item><title>macOS open command</title><link>https://sambloomquist.com/posts/2025/02/macos-open-command/</link><pubDate>Fri, 14 Feb 2025 01:08:07 +0000</pubDate><guid>https://sambloomquist.com/posts/2025/02/macos-open-command/</guid><description>&lt;p>macOS has a neat program for opening files, directories, and urls from the command line.&lt;/p>
&lt;pre tabindex="0">&lt;code>open file.ext
&lt;/code>&lt;/pre>&lt;p>will open &lt;code>file.ext&lt;/code> from your current directory in whatever default app you have configured for the given files&amp;rsquo; extension. For example &lt;code>open paper.pdf&lt;/code> will open Preview or another PDF viewer and &lt;code>open foobar.py&lt;/code> will open the editor you have configured for &lt;code>.py&lt;/code> files (configurable in Finder).&lt;/p>
&lt;p>It can also open directories for viewing in Finder with &lt;code>open /path/to/my/dir&lt;/code> or even urls with &lt;code>open https:example.com&lt;/code> in your default web browser.&lt;/p></description></item></channel></rss>