<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>rfi: A Simple Linux utility to get a random file from a directory | tait.tech</title><linkrel="stylesheet"href="/assets/css/style.css"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="author"content="Tait Hoyem"><metaname="keywords"content=""><metaname="description"content=""></head><body><divid="wrapper"><header><nav><inputtype="checkbox"id="menu"><labelfor="menu">☰</label><divclass="menu-content"><ahref="/"class="nav-link">Home</a><ahref="/blog/"class="nav-link">Blog</a><ahref="https://github.com/TTWNO/"class="nav-link"target="_blank"rel="noopener noreferrer">Github</a></div></nav></header><main><article><header><h1class="post-title">rfi: A Simple Linux utility to get a random file from a directory</h1><timedatetime="20-04-21"class="post-date">Tuesday, April 21 2020</time></header><hr><p>I made a <ahref="https://lbry.tv/@tait:7/rfi:5">little video</a> about this script I wrote:</p><preclass="terminal">
</pre><p>This program gets a random file from your current directory if you do not specify one; it gets a random file from the specified directory if you give it one like so:</p><preclass="terminal">
</pre><p>Which is very useful if you want to start a random VPN configuration :)</p><p>The code, comments, etc. are on the <ahref="https://github.com/TTWNO/scripts">Github</a>.</p></article></main><hr><footer> This page is mirrored on <ahref="https://beta.tait.tech/2020/04/21/rfi.html">beta.tait.tech</a>. </footer></div></body></html>