You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.6 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>rfi: A Simple Linux utility to get a random file from a directory | tait.tech</title>
<link rel="stylesheet" href="/assets/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
<nav>
<input type="checkbox" id="menu">
<label for="menu">&#9776;</label>
<div class="menu-content">
<a href="/" class="nav-link" >Home</a>
<a href="/tutoring/" class="nav-link" >Tutoring</a>
<a href="/blog/" class="nav-link" >Blog</a>
<a href="/links/" class="nav-link" >Links</a>
<a href="https://github.com/TTWNO/" class="nav-link" target="_blank" rel="noopener noreferrer" >Code</a>
</div>
</nav>
<h1>rfi: A Simple Linux utility to get a random file from a directory</h1>
<h4 class="post-date line-under">Tuesday, April 21 2020</h4>
<div class="article">
<p>I made a <a href="https://lbry.tv/@tait:7/rfi:5">little video</a> about this script I wrote:</p>
<pre class="terminal">
$ rfi
</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>
<pre class="terminal">
# rfi /etc/wireguard
</pre>
<p>Which is very useful if you want to start a random VPN configuration :)</p>
<p>The code, comments, etc. are on the <a href="https://github.com/TTWNO/scripts">Github</a>.</p>
</div>
<footer>
This page is mirrored on <a href="https://beta.tait.tech/2020/04/21/rfi.html">beta.tait.tech</a>.
</footer>
</div>
</body>
</html>