id

Purpose

Use the id command to display the name of the currently logged in user.

See Also:

"Miscellaneous Commands" for related commands

Prerequisites

No rights are required to run the id command.

Syntax

id::=

id [ --long/-l ] 

Semantics

--long/-l

Displays user and class. By default id displays only the class.

Example

Example 2-37 displays the current user, logs out, logs in again as a different user, and then displays current user information.

Example 2-37 Displaying the Current User

ob> id --long
user: admin, class: admin
ob> lsuser
admin            admin
sbt              admin
tadmin           admin
ob> logout
% obtool
Oracle Secure Backup 10.2
login: sbt
ob> id
sbt