On Thu, 2008-11-20 at 17:25 +0800, [EMAIL PROTECTED] wrote: > Would you mind to tell me what different between "passwd" and > "/usr/bin/passwd" ?
If you administer a Unix/Linux system, it essential that you understand this. Even if you're only a user, it's highly relevant. Typing "passwd" at the Shell command prompt (or equivalently, in a script) tells the Shell to look for an executable file called "passwd" in a series of directories defined by the $PATH variable. The first one it finds, it executes. If the $PATH variable has been altered to put some sneaky directory ahead of /usr/bin in the list the Shell will search, that's what gets executed. On the other hand, "/usr/bin/passwd" means exactly that file, with no ambiguity. BTW, this is why it's strongly recommended not to include "." as a member of your $PATH. Think about it ... poc -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines