Added blog post backlog, removed unnecessary posts, and converted front matter to yaml

This commit is contained in:
2025-01-06 19:51:46 -08:00
parent d14ab4c4be
commit 6bec16b6f0
352 changed files with 2339 additions and 1788 deletions

View File

@@ -0,0 +1,22 @@
---
date: "2024-08-31T00:00:00-08:00"
draft: false
tags:
- blog
title: 'Re: My Top 10 Linux Commands'
---
I came across [this post](https://www.garron.blog/notes/my-top-10-linux-commands.html) by Guillermo Garron sharing how to see your most used shell commands. The post says "Linux Commands", but this will work with any POSIX or POSIX adjacent shell. Just run the following command:
```shell
history | awk '{print $2}' | sort | uniq -c | sort -nr | head -n 10
```
I thought it would be fun and silly to share my results, which were:
```shell
1 history
```
The reason why there is only this one command in my top 10 list of most used commands is because I don't keep that history. My `$HISTFILE` is set to `/dev/null`, which helps keep my home folder clean of unnecessary files, and I believe that history is unnecessary. I keep a lot of notes for commands that I need to refer back to later, or I create shell scripts for commands that need to be repeatedly ran. This practice works for me because I feel like I am always starting with a clean slate, while still being able to quickly look up what I need to do with man-pages, my personal notes, or shell scripts.
Give it a try, delete your history!