Is it Safe to Use Sudo Commands I Find Online?

0
12
Asked By CuriousPenguin42 On

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

Answered By LinuxWizard99 On

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.

GentleCoder22 -

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

Answered By TechSavvyDude87 On

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.

Answered By SoothingShell65 On

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!

Answered By SafetyFirst101 On

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`.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.