A Look at My Recently Used Commands

7 min

language: ja bn en es hi pt ru zh-cn zh-tw

Hello, I'm incompetent.

I saw this article and became curious, so I decided to write about it.
Commands frequently used by a backend engineer who has worked for 10 years

Development Laptop

history  | awk '{print $2}' | sort | uniq -c | sort -ntr
      1 hey
      1 l
      1 ll
      1 lsc
      1 markdown
      1 ncdu
      1 ob
      1 printenv
      1 sdkmanager
      1 sdkmanager.bat
      1 sensors
      1 watch
      1 whcih
      1 y
      1 ~/.hl/
      2 curl_chrome116
      2 curljs
      2 find
      2 modprobe
      2 obs
      2 realpath
      3 ./gradlew
      3 codex
      3 source
      3 sqlite3
      4 curl
      5 conoha-dns
      5 copilot
      5 dolphin
      5 ssh
      5 yay
      6 hash
      7 pb20gbase91
      8 bash
      8 rm
      9 adb
      9 grep
      9 tree
     14 python3
     16 history
     17 rg
     17 sudo
     19 which
     20 docker-compose
     23 pip
     26 vim
     35 make
     44 cat
     55 ls
     57 cd
    208 hl
    318 git

Thanks to the recent release of Copilot CLI, it's heavily present in my history ^^;
It's a bit embarrassing that there are quite a few typos...
Shall we go through each one?

hey

I tried it a bit for load testing.
Overall, if you're doing a quick test locally, siege had high quality, but curl is usually sufficient ^^;

l

For this one, I've just thrown in aliases that are included by default in Debian-based distros.

alias l='ls -CF'

ll

Same as above.

alias ll='ls -la'

lsc

Typo.

markdown

Converts markdown to html.

$ echo aaa | markdown
<p>aaa</p>

For the reverse, I use html2text, which Aaron created.

ncdu

My development machine often runs out of space, so I've been running this quite a bit recently ^^;

ob

Typo.

printenv

When outputting environment variables.
I don't remember what I used it for recently...

sdkmanager

For Android app development.
You need to agree to the terms when using the SDK.

sdkmanager.bat

Typo where the file was auto-completed by tab completion.

sensors

To check temperature.

watch

To check fan speed under /proc.

whcih

Typo.

y

Typo.

~/.hl/

Typo.

curl_chrome116

curl-impersonate

curljs

Just sends requests with a headless Chrome I made myself.

find

find, which I use quite often.
I often use it to directly find and copy files that are deep in the directory structure after a grep/rg.
And other uses, etc.

modprobe

Did I change something in the kernel...?

obs

Screen recording.

realpath

I don't remember the exact flow of how I use it, but I use it quite a bit.
When I want to get the full path.

./gradlew

For Android app development.

codex

Codex!

source

source ~/.bashrc is the main use.

sqlite3

When entering sqlite.

curl

curl!
Needless to say.

conoha-dns

Something I made myself to quickly change records locally.
I've been typing it often recently, wondering what the settings were.

copilot

To try out the copilot CLI.
However, codex is faster, so I don't think there's a need to switch.

dolphin

File manager.
Launching a file manager from the terminal happens quite often.

ssh

Between my home servers, or to servers I manage.

yay

For installing AUR packages.

hash

For rehashing commands.

pb20gbase91

Path management.

bash

Recently, I've become too lazy to even do chmod +x, so I just run scripts with bash script.sh.
The ./ is surprisingly annoying; it breaks my home row position.

rm

For deletion.

adb

Probably used adb logcat a lot for app debugging.

grep

Needless to say.

tree

To understand the overall structure of a folder.

python3

Nothing special to say.

history

I often type this to check what I was running in a shell.
I tend to open too many shell tabs and forget what I was doing.
This history itself is part of the work I was doing.
image

rg

ripgrep
Well, grep is sufficient, but if I'm going to use options like grep -lr/grep -r, then ripgrep is faster. Though, I could just register an alias.

sudo

I wonder if I've ever met a Mr. Sudo...

which

I remember typing it quite a bit, but I have no memory of why I was running it...

docker-compose

Docker went somewhere.
It should ideally be run with sudo.

pip

Package management.

vim

A survivor of vimmers.
With recent updates, *.swp files seem to be created under $USER/.cache now.
You no longer need *.swp in .gitignore.

Recently, I had my codex buddy create a Miku-like theme, and it looks good.
image

make

Because I'm using make in a way that's almost not its original purpose...

cat

Uu! Nyaa!
It's a cat.

ls

Even if I have aliases registered, it's out of habit.

cd

Basically only works within the terminal.

hl

I was creating it in this tab, so I ran it a lot for testing.

git

Honestly, it's better to have some aliases registered.
But I just don't get around to it.
Also, if you interact with many servers, it's better to have as few aliases as possible.

I intended to write about my home server too, but I ran out of energy.

That's all for today. See you next time.

Related Posts