01-09-2016, 02:41 PM
1452152598-lecture61.ppt (Size: 66 KB / Downloads: 17)
General-Purpose Utilities
The general-purpose utilities of the system can be broadly divided into two categories:
Some commands tell you the state of the system.
Others can aid you directly in your work.
In chapter 1, you used the passwd command to change your password.
When used without arguments, it sets the user’s own password:
passwd: Change Your Password
$ passwd
Changing password for gates
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
When invoked by an ordinary user, passwd asks for the old password, then it demands the new password twice.
who and w: Know the Users
UNIX maintains an account of all users who are logged on to the system.
There are two commands which display an informative listing of users – who and w.
Who produces a simple three or four-columnar output.
$ who
romeo pts/2 Aug 31 12:00 (sisko.cs.twsu.edu)
juliet pts/5 Sep 2 15:10 (156.26.169.34)