Hi!
I’ll write this down, so I don’t forget in the near future. I’m not a Linux user, and that’s amazing. Every day I learn something new, mostly while I’m working with Python, Visual Studio Code and Raspberry Pi.
So, I received a couple of brand new Raspberry Pi 4, and now it’s time to test them. And of course, most of this job is via SSH / command line. I’m not an expert (yet) on Raspberry Pi user permissions, however I started to realize when I need to use “sudo” to get things done.
If you search for sudo definition, you may find something similar to this one:
Sudo stands for either “substitute user do” or “super user do” (depending upon how you want to look at it)
https://www.lifewire.com/what-is-sudo-2197466
Today, I’ve learned the power of the “alias” command, and how it can be used to have a more polite conversation with my device. In example, I can create an alias for sudo, named “please” and then this happen.
alias please="sudo"
This is a very polite way to display my Raspberry Pi4 CPU information

Or another polite way to display Disk information for the Raspberry Pi 4

You get the idea.
Happy Coding!
Greetings @ Toronto
El Bruno
Twitter source