« first day (5113 days earlier)      last day (58 days later) » 

21:44
@terdon what are the benefits of running the whole script with sudo vs individual commands? I know this conversation has been had on here multiple times but I don't remember
I asked chatgpt and it said it's better to use it on individual commands and I tend to agree with most of it's points
It is generally better practice to use sudo for specific commands within a Bash script, rather than running the entire script with sudo. This approach is safer and provides better control over which commands require elevated privileges. Here's why:

Advantages of Using sudo for Specific Commands:
Minimized Security Risks:

Running the entire script with sudo grants elevated privileges to every part of the script, even commands that don't need it. This increases the risk of accidental system changes or security vulnerabilities.

« first day (5113 days earlier)      last day (58 days later) »