I'm having trouble with sudo when I try to start an interactive session. It always changes the directory to the root's home directory. But I want to run commands in the directory I started the session from.
How can I get sudo to start an interactive session in my current directory?
-s
does not run the startup scripts/etc/profile.d/
– bilogic Jul 13 '23 at 06:46