Edited old blog posts to fit with Hugo (except Open Mic)

This commit is contained in:
2024-12-24 12:12:02 -08:00
parent 2ef0a8a1b0
commit 1e1b2656f7
221 changed files with 5060 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
+++
title = 'Re: My Top 10 Linux Commands'
date = 2024-08-31T00:00:00-08:00
tags = ['blog']
draft = false
+++
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!