著者: Arnt Gulbrandsen 日付: To: dng 題目: Re: [DNG] sudo or su?
The main difference is whether you want to keep being the original user
or become root. Sudo keeps yourself when it can, su changes when it
can. The difference affects e.g. $PATH, which sudo leaves alone and su
resets to root's value.