DEV Community

Discussion on: What are some fundamentals of security every developer should understand?

Collapse
 
clickclickonsal profile image
Sal Hernandez

DON'T RUN a command with sudo in your command line if you don't fully know what it's doing & understand that typing sudo in front of a command & then typing in your password grants that command full read/write access to your filesystem!

For example:
I know we've all seen this command before & sometimes jokingly tell people to run it
sudo rm -rf /

What this command does is it recursively remove all files/directories under /. "Slash" is the root directory of your computer. So calling sudo with this command gives it full rights to do without prompting any kind of warning to proceed.