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.

23 lines
589 B

---
title: "rfi: A Simple Linux utility to get a random file from a directory"
layout: post
---
I made a [little video](https://lbry.tv/@tait:7/rfi:5) about this script I wrote:
<pre class="terminal">
$ rfi
</pre>
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:
<pre class="terminal">
# rfi /etc/wireguard
</pre>
Which is very useful if you want to start a random VPN configuration :)
The code, comments, etc. are on the [Github](https://github.com/TTWNO/scripts).