16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The utmpx file format, the options, and the output of who are totally compatible<br />

with <strong>UNIX</strong> <strong>System</strong> V.<br />

The –A, –a, –b, –d –i, –l, –p, –r, –s, –t, –w, and am I options are extensions to the<br />

P<strong>OS</strong>IX standard.<br />

Related Information<br />

See the utmpx file format description in Appendix H for more information.<br />

whoami — Display your effective user name<br />

Format<br />

Description<br />

Exit Values<br />

whoami<br />

Related Information<br />

who, id<br />

whoami displays a user name associated with the effective user ID. To display your<br />

login name, use who am i.<br />

For example, if you login as user1, then use the su command to change to user2:<br />

command returned<br />

who am I user1<br />

whoami user2<br />

0 Successful completion<br />

1 Incorrect command line argument<br />

write — Write to another user<br />

Format<br />

Description<br />

Options<br />

2 Error getting effective username; Displays effective UID<br />

write user_name [terminal]<br />

write lets you send a message directly to the terminal of someone else logged in to<br />

the system.<br />

user_name<br />

Specifies the user to whom you want to send your message.<br />

who<br />

terminal<br />

Is an optional identifier for use when the other user is logged in on more<br />

than one terminal. The format of the terminal name is the same as returned<br />

by who.<br />

Chapter 2. Shell command descriptions 793

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!