<html><head></head><body><div><br></div><div><br></div><div>On Sat, 2017-01-28 at 06:05 +0100, Ralf Mardorf wrote:</div><blockquote type="cite"><pre>On Sat, 28 Jan 2017 09:33:46 +0900, Joel Rees wrote:
<blockquote type="cite">
sudo parameters can be a mess, too, especially since the shell blocks
you from checking wildcard results unless you do get yourself an
interactive shell (via sudo -i, etc.).
</blockquote>

Is "etc." for

$ sudo sh -c "ls -hAl /home/foo/.bar*"

?


<blockquote type="cite">
It's better than doing the same thing with su, but not really perfect.
</blockquote>

Why is using "sudo -i" better, than using "su"? Resp. "sudo sh -c"
better than "su -c"? Regarding environment variables by default "su"
usually does the same on all Linux distros, "sudo" doesn't. At least in
regards to portability "su" is the better choice.

Regards,
Ralf


</pre></blockquote><div><div>Hi All</div><div><br></div><div>I have watched this discussion for a while and admire the knowledge and skill of all participants.</div><div><br></div><div>As a retired end-user I aim to only use GUI tools on my desktop. </div><div><br></div><div>There may be advantage in using terminal commands for some problems. What sources could I study to gradually learn more?</div><div><br></div><div>Thanks for your guidance.</div><div><span>-- <br><div>Our preferred address is</div><a href="mailto:irons.charles@gmail.com">irons.charles@gmail.com</a><div class="-x-evo-paragraph">Home   +2783 588 0028</div></span></div></div></body></html>