Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
projects [-dv] [ user]
projects -l [projectname [projectname]...]
The projects command prints on standard output the projects to which the invoking user or an optionally specified user belongs. Each user belongs to some set of projects specified in the project(4) file and possibly in the associated NIS maps and LDAP databases for project information.
The following options are supported:
-d
Prints only default project.
-l
Prints verbose info on each project projectname. If no projectnames are given, info on all projects is printed.
-v
Prints project descriptions along with project names.
The following operand is supported:
projectname
Display information for the specified project.
user
Displays project memberships for the specified user.
Example 1 Displaying Membership for a Specified User
example$ projects paul default beatles wings example$ projects ringo default beatles example$ projects -d paul beatles
The following exit values are returned:
0
Successful completion.
1
A fatal error occurred during execution.
2
Invalid command line options were specified.
Local database containing valid project definitions for this machine.
See attributes(5) for a description of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Stability | See below. |
The invocation is Evolving. The human-readable output is Unstable.
getdefaultproj(3PROJECT), getprojent(3PROJECT), project(4), attributes(5)