blog.iankulin.com

Command-Line

Why use './' in front of filenames?

An exploration of why filenames in Linux are sometimes prefixed with ./. I ask ChatGPT for an explanation, verify its claims with hands-on tests, and find the prefix is useful for executing scripts in the current directory, preventing filenames from being mistaken for command arguments, and clarifying relative paths in HTML—though in many cases it’s optional...

Recursively Deleting Files in Linux

I give a short walkthrough of backing up a Synology NAS to a USB drive with rsync, using excludes to skip junk files like macOS’s .DS_Store and Synology’s @eaDir. I also show how to use the find command to recursively locate .DS_Store files scattered through subdirectories, preview the matches first, and delete them with the -delete flag...