CLI Tools

  1. vhs: Your CLI home video recorder
  2. radio-cli: A simple radio CLI written in rust

Articles of Note

Tip of the Week

Get information about files:

# print lines, word count, and byte size:
% cat << EOF > /tmp/file.txt
It's a jetpack, Michael. What could go wrong?
You are a worse psychiatrist than you are a son-in-law and you will never get work as an actor because you have no talent.
If you're suggesting I play favorites, you're wrong. I love all of my children equally. I don't care for Gob.
EOF

% wc /tmp/file1.txt
3 52 279 file.txt  # 3 lines, 52 words, 279 bytes

# `stat` is a highly customizable program to show file and system info:
% stat file.txt
  File: file.txt
  Size: 279             Blocks: 8          IO Block: 4096   regular file
Device: 1,18    Inode: 33788754    Links: 1
Access: (0644/-rw-r--r--)  Uid: (  501/  bfrank)   Gid: (    0/   wheel)
Access: 2022-11-03 21:27:10.235710583 -0400
Modify: 2022-11-03 21:27:07.537350066 -0400
Change: 2022-11-03 21:27:07.537350066 -0400
 Birth: 2022-11-03 21:25:29.005628590 -0400

% stat -c "%F" /tmp/file.txt  # %F = file type
regular file

# `file` shows file type and metadata
% file /tmp/file.txt
file.txt: ASCII text

% file --mime-type file.txt
file.txt: text/plain