I've recently started using Linux Mint Cinnamon and learned that it's not a good idea to run sudo commands that you find online without understanding them. I've used sudo a few times since I installed it a few weeks ago and now I'm worried. Is there a way to check if I've messed with any permissions? How can I restore them to default? Also, is it okay to use sudo for installations, like with `sudo apt install ...`? Thanks for your help!
4 Answers
There's nothing inherently wrong with using sudo, but avoid executing commands you don't grasp, since it gives you superuser access. It's essential to understand the risks. If you're installing software via apt, sudo is required for that. If you think you've changed permissions, check your bash history with `history | grep sudo` to see what you've run.
You can safely use sudo if you know what you're doing. Running installations is perfectly fine with sudo! Just be cautious with any commands you don't fully understand.
If you’re unsure about commands you might’ve run that altered permissions, checking `history` is a good starting point. And yes, using `sudo apt install ` is standard practice for installations in Linux!
Using sudo just elevates your permissions, which is usually necessary for tasks like installing software. Don't stress about permissions unless something breaks. To look for potential changes, you can always check your command history using `history`.

Right! Just remember, using commands like `curl | sudo bash` without understanding can lead to issues!