I would use dataview inline fields. Create a template that you can insert in your daily notes or other files when you want to log a command. Then use dataview query in your cheatsheet to pull all commands.
bash_command:: LS
Bash_note:: How to view local files
Then make dataview query in your cheatsheet note
Table without ID
Bash_Command As "Command", Bash_Note As "Note", file.link As "Source File"
From ""
where Bash_Command
sort Bash_Command
i.e.